From 590e3d0ee8bb9b5a561a1d80ca7f19eb44190393 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 13 Apr 2023 13:03:14 +0000 Subject: [PATCH 1/3] docs: Adjust wording around service accounts and control planes PiperOrigin-RevId: 522482855 Source-Link: https://github.com/googleapis/googleapis/commit/f0cec0b201737db7e99ff1bc6dac09e16ed2ce65 Source-Link: https://github.com/googleapis/googleapis-gen/commit/480b18a2766a287abb5d003bc79daa4d6bff5727 Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjQ4MGIxOGEyNzY2YTI4N2FiYjVkMDAzYmM3OWRhYTRkNmJmZjU3MjcifQ== feat: add client libraries for Workstations v1 PiperOrigin-RevId: 522193471 Source-Link: https://github.com/googleapis/googleapis/commit/5cb1253fe172d0ea06734d6274a217b6273b02dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/c806967c017f4f02811abaacb9c91bc2861572b1 Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImM4MDY5NjdjMDE3ZjRmMDI4MTFhYmFhY2I5YzkxYmMyODYxNTcyYjEifQ== --- .../workstations/v1beta/WorkstationsGrpc.java | 2699 --- ...GetWorkstationClusterRequestOrBuilder.java | 54 - .../GetWorkstationConfigRequestOrBuilder.java | 54 - .../GetWorkstationRequestOrBuilder.java | 54 - .../v1beta/WorkstationsProto.java | 1101 -- .../workstations/v1/WorkstationsClient.java | 4179 +++++ .../workstations/v1/WorkstationsSettings.java | 646 + .../cloud/workstations/v1/gapic_metadata.json | 87 + .../cloud/workstations/v1/package-info.java | 44 + .../stub/GrpcWorkstationsCallableFactory.java | 113 + .../v1/stub/GrpcWorkstationsStub.java | 1175 ++ .../HttpJsonWorkstationsCallableFactory.java | 105 + .../v1/stub/HttpJsonWorkstationsStub.java | 1815 ++ .../v1/stub/WorkstationsStub.java | 288 + .../v1/stub/WorkstationsStubSettings.java | 1888 +++ .../cloud/workstations/v1/MockIAMPolicy.java | 59 + .../workstations/v1/MockIAMPolicyImpl.java | 127 + .../cloud/workstations/v1/MockLocations.java | 59 + .../workstations/v1/MockLocationsImpl.java | 59 + .../workstations/v1/MockWorkstations.java | 59 + .../workstations/v1/MockWorkstationsImpl.java | 486 + .../v1/WorkstationsClientHttpJsonTest.java | 2818 ++++ .../v1/WorkstationsClientTest.java | 2528 +++ .../workstations/v1/WorkstationsGrpc.java | 1969 +++ .../v1/CreateWorkstationClusterRequest.java | 1060 ++ ...ateWorkstationClusterRequestOrBuilder.java | 87 + .../v1/CreateWorkstationConfigRequest.java | 1060 ++ ...eateWorkstationConfigRequestOrBuilder.java | 87 + .../v1/CreateWorkstationRequest.java | 1060 ++ .../v1/CreateWorkstationRequestOrBuilder.java | 87 + .../v1/DeleteWorkstationClusterRequest.java | 925 ++ ...eteWorkstationClusterRequestOrBuilder.java | 73 + .../v1/DeleteWorkstationConfigRequest.java | 925 ++ ...leteWorkstationConfigRequestOrBuilder.java | 73 + .../v1/DeleteWorkstationRequest.java | 838 + .../v1/DeleteWorkstationRequestOrBuilder.java | 62 + .../v1/GenerateAccessTokenRequest.java | 1233 ++ .../GenerateAccessTokenRequestOrBuilder.java | 102 + .../v1/GenerateAccessTokenResponse.java | 830 + .../GenerateAccessTokenResponseOrBuilder.java | 62 + .../v1/GetWorkstationClusterRequest.java | 580 + ...GetWorkstationClusterRequestOrBuilder.java | 29 + .../v1/GetWorkstationConfigRequest.java | 580 + .../GetWorkstationConfigRequestOrBuilder.java | 29 + .../v1/GetWorkstationRequest.java | 580 + .../v1/GetWorkstationRequestOrBuilder.java | 29 + .../ListUsableWorkstationConfigsRequest.java | 826 + ...bleWorkstationConfigsRequestOrBuilder.java | 59 + .../ListUsableWorkstationConfigsResponse.java | 1266 ++ ...leWorkstationConfigsResponseOrBuilder.java | 116 + .../v1/ListUsableWorkstationsRequest.java | 826 + ...istUsableWorkstationsRequestOrBuilder.java | 59 + .../v1/ListUsableWorkstationsResponse.java | 1266 ++ ...stUsableWorkstationsResponseOrBuilder.java | 116 + .../v1/ListWorkstationClustersRequest.java | 826 + ...stWorkstationClustersRequestOrBuilder.java | 59 + .../v1/ListWorkstationClustersResponse.java | 1266 ++ ...tWorkstationClustersResponseOrBuilder.java | 116 + .../v1/ListWorkstationConfigsRequest.java | 826 + ...istWorkstationConfigsRequestOrBuilder.java | 59 + .../v1/ListWorkstationConfigsResponse.java | 1266 ++ ...stWorkstationConfigsResponseOrBuilder.java | 116 + .../v1/ListWorkstationsRequest.java | 826 + .../v1/ListWorkstationsRequestOrBuilder.java | 59 + .../v1/ListWorkstationsResponse.java | 1266 ++ .../v1/ListWorkstationsResponseOrBuilder.java | 116 + .../cloud/workstations/v1/LocationName.java | 192 + .../workstations/v1/OperationMetadata.java | 1617 ++ .../v1/OperationMetadataOrBuilder.java | 154 + .../v1/StartWorkstationRequest.java | 838 + .../v1/StartWorkstationRequestOrBuilder.java | 62 + .../v1/StopWorkstationRequest.java | 838 + .../v1/StopWorkstationRequestOrBuilder.java | 62 + .../v1/UpdateWorkstationClusterRequest.java | 1060 ++ ...ateWorkstationClusterRequestOrBuilder.java | 88 + .../v1/UpdateWorkstationConfigRequest.java | 1048 ++ ...dateWorkstationConfigRequestOrBuilder.java | 85 + .../v1/UpdateWorkstationRequest.java | 1048 ++ .../v1/UpdateWorkstationRequestOrBuilder.java | 85 + .../cloud/workstations/v1/Workstation.java | 2979 ++++ .../workstations/v1/WorkstationCluster.java | 4859 ++++++ .../v1/WorkstationClusterName.java | 231 + .../v1/WorkstationClusterOrBuilder.java | 425 + .../workstations/v1/WorkstationConfig.java | 13808 ++++++++++++++++ .../v1/WorkstationConfigName.java | 269 + .../v1/WorkstationConfigOrBuilder.java | 585 + .../workstations/v1/WorkstationName.java | 308 + .../workstations/v1/WorkstationOrBuilder.java | 343 + .../workstations/v1/WorkstationsProto.java | 947 ++ .../cloud/workstations/v1/workstations.proto | 1163 ++ .../SyncGetWorkstationCluster.java | 49 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 39 + .../create/SyncCreateSetEndpoint.java | 41 + .../AsyncCreateWorkstation.java | 60 + .../AsyncCreateWorkstationLRO.java | 60 + .../SyncCreateWorkstation.java | 55 + ...ateWorkstationStringWorkstationString.java | 48 + ...orkstationconfignameWorkstationString.java | 48 + .../AsyncCreateWorkstationCluster.java | 54 + .../AsyncCreateWorkstationClusterLRO.java | 54 + .../SyncCreateWorkstationCluster.java | 49 + ...rLocationnameWorkstationclusterString.java | 48 + ...ClusterStringWorkstationclusterString.java | 47 + .../AsyncCreateWorkstationConfig.java | 56 + .../AsyncCreateWorkstationConfigLRO.java | 56 + .../SyncCreateWorkstationConfig.java | 51 + ...onConfigStringWorkstationconfigString.java | 48 + ...ionclusternameWorkstationconfigString.java | 49 + .../AsyncDeleteWorkstation.java | 59 + .../AsyncDeleteWorkstationLRO.java | 60 + .../SyncDeleteWorkstation.java | 55 + .../SyncDeleteWorkstationString.java | 49 + .../SyncDeleteWorkstationWorkstationname.java | 48 + .../AsyncDeleteWorkstationCluster.java | 55 + .../AsyncDeleteWorkstationClusterLRO.java | 56 + .../SyncDeleteWorkstationCluster.java | 51 + .../SyncDeleteWorkstationClusterString.java | 43 + ...kstationClusterWorkstationclustername.java | 43 + .../AsyncDeleteWorkstationConfig.java | 59 + .../AsyncDeleteWorkstationConfigLRO.java | 60 + .../SyncDeleteWorkstationConfig.java | 55 + .../SyncDeleteWorkstationConfigString.java | 45 + ...orkstationConfigWorkstationconfigname.java | 44 + .../AsyncGenerateAccessToken.java | 57 + .../SyncGenerateAccessToken.java | 53 + .../SyncGenerateAccessTokenString.java | 49 + ...yncGenerateAccessTokenWorkstationname.java | 48 + .../getiampolicy/AsyncGetIamPolicy.java | 58 + .../getiampolicy/SyncGetIamPolicy.java | 55 + .../getworkstation/AsyncGetWorkstation.java | 57 + .../getworkstation/SyncGetWorkstation.java | 53 + .../SyncGetWorkstationString.java | 49 + .../SyncGetWorkstationWorkstationname.java | 48 + .../AsyncGetWorkstationCluster.java | 52 + .../SyncGetWorkstationCluster.java | 48 + .../SyncGetWorkstationClusterString.java | 43 + ...kstationClusterWorkstationclustername.java | 43 + .../AsyncGetWorkstationConfig.java | 56 + .../SyncGetWorkstationConfig.java | 52 + .../SyncGetWorkstationConfigString.java | 45 + ...orkstationConfigWorkstationconfigname.java | 44 + .../AsyncListUsableWorkstationConfigs.java | 56 + ...syncListUsableWorkstationConfigsPaged.java | 64 + .../SyncListUsableWorkstationConfigs.java | 53 + ...yncListUsableWorkstationConfigsString.java | 46 + ...kstationConfigsWorkstationclustername.java | 46 + .../AsyncListUsableWorkstations.java | 60 + .../AsyncListUsableWorkstationsPaged.java | 68 + .../SyncListUsableWorkstations.java | 56 + .../SyncListUsableWorkstationsString.java | 47 + ...ableWorkstationsWorkstationconfigname.java | 46 + .../AsyncListWorkstationClusters.java | 54 + .../AsyncListWorkstationClustersPaged.java | 62 + .../SyncListWorkstationClusters.java | 51 + ...ncListWorkstationClustersLocationname.java | 45 + .../SyncListWorkstationClustersString.java | 45 + .../AsyncListWorkstationConfigs.java | 56 + .../AsyncListWorkstationConfigsPaged.java | 64 + .../SyncListWorkstationConfigs.java | 53 + .../SyncListWorkstationConfigsString.java | 46 + ...kstationConfigsWorkstationclustername.java | 46 + .../AsyncListWorkstations.java | 60 + .../AsyncListWorkstationsPaged.java | 68 + .../SyncListWorkstations.java | 56 + .../SyncListWorkstationsString.java | 47 + ...ListWorkstationsWorkstationconfigname.java | 46 + .../setiampolicy/AsyncSetIamPolicy.java | 59 + .../setiampolicy/SyncSetIamPolicy.java | 56 + .../AsyncStartWorkstation.java | 59 + .../AsyncStartWorkstationLRO.java | 60 + .../SyncStartWorkstation.java | 55 + .../SyncStartWorkstationString.java | 49 + .../SyncStartWorkstationWorkstationname.java | 48 + .../stopworkstation/AsyncStopWorkstation.java | 59 + .../AsyncStopWorkstationLRO.java | 60 + .../stopworkstation/SyncStopWorkstation.java | 55 + .../SyncStopWorkstationString.java | 49 + .../SyncStopWorkstationWorkstationname.java | 48 + .../AsyncTestIamPermissions.java | 59 + .../SyncTestIamPermissions.java | 55 + .../AsyncUpdateWorkstation.java | 54 + .../AsyncUpdateWorkstationLRO.java | 54 + .../SyncUpdateWorkstation.java | 49 + ...UpdateWorkstationWorkstationFieldmask.java | 44 + .../AsyncUpdateWorkstationCluster.java | 54 + .../AsyncUpdateWorkstationClusterLRO.java | 54 + .../SyncUpdateWorkstationCluster.java | 49 + ...ionClusterWorkstationclusterFieldmask.java | 44 + .../AsyncUpdateWorkstationConfig.java | 54 + .../AsyncUpdateWorkstationConfigLRO.java | 54 + .../SyncUpdateWorkstationConfig.java | 49 + ...ationConfigWorkstationconfigFieldmask.java | 44 + .../SyncGetWorkstationCluster.java | 48 + .../v1beta/WorkstationsClient.java | 0 .../v1beta/WorkstationsSettings.java | 1 + .../workstations/v1beta/gapic_metadata.json | 0 .../workstations/v1beta/package-info.java | 0 .../stub/GrpcWorkstationsCallableFactory.java | 0 .../v1beta/stub/GrpcWorkstationsStub.java | 1 + .../HttpJsonWorkstationsCallableFactory.java | 0 .../v1beta/stub/HttpJsonWorkstationsStub.java | 1 + .../v1beta/stub/WorkstationsStub.java | 0 .../v1beta/stub/WorkstationsStubSettings.java | 0 .../workstations/v1beta/MockIAMPolicy.java | 0 .../v1beta/MockIAMPolicyImpl.java | 0 .../workstations/v1beta/MockLocations.java | 0 .../v1beta/MockLocationsImpl.java | 0 .../workstations/v1beta/MockWorkstations.java | 0 .../v1beta/MockWorkstationsImpl.java | 0 .../WorkstationsClientHttpJsonTest.java | 0 .../v1beta/WorkstationsClientTest.java | 0 .../workstations/v1beta/WorkstationsGrpc.java | 1969 +++ .../CreateWorkstationClusterRequest.java | 664 +- ...ateWorkstationClusterRequestOrBuilder.java | 67 +- .../CreateWorkstationConfigRequest.java | 664 +- ...eateWorkstationConfigRequestOrBuilder.java | 67 +- .../v1beta/CreateWorkstationRequest.java | 618 +- .../CreateWorkstationRequestOrBuilder.java | 67 +- .../DeleteWorkstationClusterRequest.java | 538 +- ...eteWorkstationClusterRequestOrBuilder.java | 50 +- .../DeleteWorkstationConfigRequest.java | 538 +- ...leteWorkstationConfigRequestOrBuilder.java | 50 +- .../v1beta/DeleteWorkstationRequest.java | 474 +- .../DeleteWorkstationRequestOrBuilder.java | 47 +- .../v1beta/GenerateAccessTokenRequest.java | 616 +- .../GenerateAccessTokenRequestOrBuilder.java | 54 +- .../v1beta/GenerateAccessTokenResponse.java | 440 +- .../GenerateAccessTokenResponseOrBuilder.java | 35 +- .../v1beta/GetWorkstationClusterRequest.java | 387 +- ...GetWorkstationClusterRequestOrBuilder.java | 29 + .../v1beta/GetWorkstationConfigRequest.java | 379 +- .../GetWorkstationConfigRequestOrBuilder.java | 29 + .../v1beta/GetWorkstationRequest.java | 356 +- .../GetWorkstationRequestOrBuilder.java | 29 + .../ListUsableWorkstationConfigsRequest.java | 513 +- ...bleWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationConfigsResponse.java | 732 +- ...leWorkstationConfigsResponseOrBuilder.java | 74 +- .../v1beta/ListUsableWorkstationsRequest.java | 496 +- ...istUsableWorkstationsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationsResponse.java | 612 +- ...stUsableWorkstationsResponseOrBuilder.java | 63 +- .../ListWorkstationClustersRequest.java | 499 +- ...stWorkstationClustersRequestOrBuilder.java | 47 +- .../ListWorkstationClustersResponse.java | 724 +- ...tWorkstationClustersResponseOrBuilder.java | 74 +- .../v1beta/ListWorkstationConfigsRequest.java | 496 +- ...istWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListWorkstationConfigsResponse.java | 714 +- ...stWorkstationConfigsResponseOrBuilder.java | 74 +- .../v1beta/ListWorkstationsRequest.java | 471 +- .../ListWorkstationsRequestOrBuilder.java | 47 +- .../v1beta/ListWorkstationsResponse.java | 584 +- .../ListWorkstationsResponseOrBuilder.java | 63 +- .../workstations/v1beta/LocationName.java | 0 .../v1beta/OperationMetadata.java | 835 +- .../v1beta/OperationMetadataOrBuilder.java | 91 +- .../v1beta/StartWorkstationRequest.java | 474 +- .../StartWorkstationRequestOrBuilder.java | 47 +- .../v1beta/StopWorkstationRequest.java | 464 +- .../StopWorkstationRequestOrBuilder.java | 47 +- .../UpdateWorkstationClusterRequest.java | 656 +- ...ateWorkstationClusterRequestOrBuilder.java | 61 +- .../UpdateWorkstationConfigRequest.java | 656 +- ...dateWorkstationConfigRequestOrBuilder.java | 61 +- .../v1beta/UpdateWorkstationRequest.java | 610 +- .../UpdateWorkstationRequestOrBuilder.java | 61 +- .../workstations/v1beta/Workstation.java | 1696 +- .../v1beta/WorkstationCluster.java | 2755 ++- .../v1beta/WorkstationClusterName.java | 0 .../v1beta/WorkstationClusterOrBuilder.java | 249 +- .../v1beta/WorkstationConfig.java | 8462 ++++------ .../v1beta/WorkstationConfigName.java | 0 .../v1beta/WorkstationConfigOrBuilder.java | 303 +- .../workstations/v1beta/WorkstationName.java | 0 .../v1beta/WorkstationOrBuilder.java | 191 +- .../v1beta/WorkstationsProto.java | 954 ++ .../workstations/v1beta/workstations.proto | 9 +- .../SyncGetWorkstationCluster.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkstation.java | 0 .../AsyncCreateWorkstationLRO.java | 0 .../SyncCreateWorkstation.java | 0 ...ateWorkstationStringWorkstationString.java | 0 ...orkstationconfignameWorkstationString.java | 0 .../AsyncCreateWorkstationCluster.java | 0 .../AsyncCreateWorkstationClusterLRO.java | 0 .../SyncCreateWorkstationCluster.java | 0 ...rLocationnameWorkstationclusterString.java | 0 ...ClusterStringWorkstationclusterString.java | 0 .../AsyncCreateWorkstationConfig.java | 0 .../AsyncCreateWorkstationConfigLRO.java | 0 .../SyncCreateWorkstationConfig.java | 0 ...onConfigStringWorkstationconfigString.java | 0 ...ionclusternameWorkstationconfigString.java | 0 .../AsyncDeleteWorkstation.java | 0 .../AsyncDeleteWorkstationLRO.java | 0 .../SyncDeleteWorkstation.java | 0 .../SyncDeleteWorkstationString.java | 0 .../SyncDeleteWorkstationWorkstationname.java | 0 .../AsyncDeleteWorkstationCluster.java | 0 .../AsyncDeleteWorkstationClusterLRO.java | 0 .../SyncDeleteWorkstationCluster.java | 0 .../SyncDeleteWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncDeleteWorkstationConfig.java | 0 .../AsyncDeleteWorkstationConfigLRO.java | 0 .../SyncDeleteWorkstationConfig.java | 0 .../SyncDeleteWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncGenerateAccessToken.java | 0 .../SyncGenerateAccessToken.java | 0 .../SyncGenerateAccessTokenString.java | 0 ...yncGenerateAccessTokenWorkstationname.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getworkstation/AsyncGetWorkstation.java | 0 .../getworkstation/SyncGetWorkstation.java | 0 .../SyncGetWorkstationString.java | 0 .../SyncGetWorkstationWorkstationname.java | 0 .../AsyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncListUsableWorkstationConfigs.java | 0 ...syncListUsableWorkstationConfigsPaged.java | 0 .../SyncListUsableWorkstationConfigs.java | 0 ...yncListUsableWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListUsableWorkstations.java | 0 .../AsyncListUsableWorkstationsPaged.java | 0 .../SyncListUsableWorkstations.java | 0 .../SyncListUsableWorkstationsString.java | 0 ...ableWorkstationsWorkstationconfigname.java | 0 .../AsyncListWorkstationClusters.java | 0 .../AsyncListWorkstationClustersPaged.java | 0 .../SyncListWorkstationClusters.java | 0 ...ncListWorkstationClustersLocationname.java | 0 .../SyncListWorkstationClustersString.java | 0 .../AsyncListWorkstationConfigs.java | 0 .../AsyncListWorkstationConfigsPaged.java | 0 .../SyncListWorkstationConfigs.java | 0 .../SyncListWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListWorkstations.java | 0 .../AsyncListWorkstationsPaged.java | 0 .../SyncListWorkstations.java | 0 .../SyncListWorkstationsString.java | 0 ...ListWorkstationsWorkstationconfigname.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncStartWorkstation.java | 0 .../AsyncStartWorkstationLRO.java | 0 .../SyncStartWorkstation.java | 0 .../SyncStartWorkstationString.java | 0 .../SyncStartWorkstationWorkstationname.java | 0 .../stopworkstation/AsyncStopWorkstation.java | 0 .../AsyncStopWorkstationLRO.java | 0 .../stopworkstation/SyncStopWorkstation.java | 0 .../SyncStopWorkstationString.java | 0 .../SyncStopWorkstationWorkstationname.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUpdateWorkstation.java | 0 .../AsyncUpdateWorkstationLRO.java | 0 .../SyncUpdateWorkstation.java | 0 ...UpdateWorkstationWorkstationFieldmask.java | 0 .../AsyncUpdateWorkstationCluster.java | 0 .../AsyncUpdateWorkstationClusterLRO.java | 0 .../SyncUpdateWorkstationCluster.java | 0 ...ionClusterWorkstationclusterFieldmask.java | 0 .../AsyncUpdateWorkstationConfig.java | 0 .../AsyncUpdateWorkstationConfigLRO.java | 0 .../SyncUpdateWorkstationConfig.java | 0 ...ationConfigWorkstationconfigFieldmask.java | 0 .../SyncGetWorkstationCluster.java | 0 383 files changed, 92712 insertions(+), 23261 deletions(-) delete mode 100644 java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java create mode 100644 owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java create mode 100644 owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java create mode 100644 owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java (100%) create mode 100644 owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java (60%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java (60%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java (53%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java (53%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java (60%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java (64%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java (58%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java (59%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java (60%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java (62%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java (51%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java (51%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java (71%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java (51%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java (51%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java (51%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java (70%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java (74%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java (64%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java (77%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java deleted file mode 100644 index 383b2de9423b..000000000000 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java +++ /dev/null @@ -1,2699 +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.workstations.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for interacting with Cloud Workstations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1beta/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.workstations.v1beta.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster> - getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster> - getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster> - getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = - getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationCluster - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) - == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = - getListWorkstationClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = - getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = - getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = - getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig> - getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig> - getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig> - getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = - getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) - == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = - getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - responseType = - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = - WorkstationsGrpc.getListUsableWorkstationConfigsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = - WorkstationsGrpc.getListUsableWorkstationConfigsMethod) - == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = - getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta - .ListUsableWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta - .ListUsableWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = - getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = - getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = - getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation> - getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1beta.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation> - getGetWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation> - getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = - getGetWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.Workstation - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - getListWorkstationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = - getListWorkstationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) - == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = - getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = - getCreateWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = - getUpdateWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = - getDeleteWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = - getStartWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StartWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = - getStopWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StopWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) - == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = - getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - default void listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableWorkstationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public abstract static class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public void listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.Workstation getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.WorkstationCluster> - getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.WorkstationConfig> - getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.Workstation> - getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster( - (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters( - (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster( - (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster( - (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster( - (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig( - (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs( - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>) - responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig( - (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig( - (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig( - (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation( - (com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations( - (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationsResponse>) - responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation( - (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation( - (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation( - (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation( - (com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation( - (com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken( - (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private abstract static class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index 383af720206e..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index ef6852654ac7..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index 937af8ffac9f..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,54 +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/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java deleted file mode 100644 index 9eae902e39b8..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java +++ /dev/null @@ -1,1101 +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/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public final class WorkstationsProto { - private WorkstationsProto() {} - - 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_workstations_v1beta_WorkstationCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/workstations/v1beta/works" - + "tations.proto\022 google.cloud.workstations" - + ".v1beta\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032#google/longrunning/operations.proto\032" - + "\036google/protobuf/duration.proto\032 google/" - + "protobuf/field_mask.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\"\255\010\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" - + "\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003" - + "\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022Z\n\013annotation" - + "s\030\005 \003(\0132E.google.cloud.workstations.v1be" - + "ta.WorkstationCluster.AnnotationsEntry\022P" - + "\n\006labels\030\017 \003(\0132@.google.cloud.workstatio" - + "ns.v1beta.WorkstationCluster.LabelsEntry" - + "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" - + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\014\n\004etag\030\t \001(\t\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027" - + "\n\nsubnetwork\030\013 \001(\tB\003\340A\005\022i\n\026private_clust" - + "er_config\030\014 \001(\0132I.google.cloud.workstati" - + "ons.v1beta.WorkstationCluster.PrivateClu" - + "sterConfig\022\025\n\010degraded\030\r \001(\010B\003\340A\003\022+\n\ncon" - + "ditions\030\016 \003(\0132\022.google.rpc.StatusB\003\340A\003\032\232" - + "\001\n\024PrivateClusterConfig\022$\n\027enable_privat" - + "e_endpoint\030\001 \001(\010B\003\340A\005\022\035\n\020cluster_hostnam" - + "e\030\002 \001(\tB\003\340A\003\022#\n\026service_attachment_uri\030\003" - + " \001(\tB\003\340A\003\022\030\n\020allowed_projects\030\004 \003(\t\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001:\212\001\352A\206\001\n.workstations.goog" - + "leapis.com/WorkstationCluster\022Qprojects/" - + "{project}/locations/{location}/workstati" - + "onClusters/{workstation_cluster}R\001\001\"\341\025\n\021" - + "WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" - + "ay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013recon" - + "ciling\030\004 \001(\010B\003\340A\003\022Y\n\013annotations\030\005 \003(\0132D" - + ".google.cloud.workstations.v1beta.Workst" - + "ationConfig.AnnotationsEntry\022O\n\006labels\030\022" - + " \003(\0132?.google.cloud.workstations.v1beta." - + "WorkstationConfig.LabelsEntry\0224\n\013create_" - + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030" - + "\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132\031.google.pro" - + "tobuf.Duration\0222\n\017running_timeout\030\013 \001(\0132" - + "\031.google.protobuf.Duration\022F\n\004host\030\014 \001(\013" - + "28.google.cloud.workstations.v1beta.Work" - + "stationConfig.Host\022g\n\026persistent_directo" - + "ries\030\r \003(\0132G.google.cloud.workstations.v" - + "1beta.WorkstationConfig.PersistentDirect" - + "ory\022P\n\tcontainer\030\016 \001(\0132=.google.cloud.wo" - + "rkstations.v1beta.WorkstationConfig.Cont" - + "ainer\022a\n\016encryption_key\030\021 \001(\0132I.google.c" - + "loud.workstations.v1beta.WorkstationConf" - + "ig.CustomerEncryptionKey\022\025\n\010degraded\030\017 \001" - + "(\010B\003\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc" - + ".StatusB\003\340A\003\032\325\005\n\004Host\022\\\n\014gce_instance\030\001 " - + "\001(\0132D.google.cloud.workstations.v1beta.W" - + "orkstationConfig.Host.GceInstanceH\000\032\344\004\n\013" - + "GceInstance\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017ser" - + "vice_account\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool" - + "_size\030\005 \001(\005\022#\n\033disable_public_ip_address" - + "es\030\006 \001(\010\022\200\001\n\030shielded_instance_config\030\010 " - + "\001(\0132^.google.cloud.workstations.v1beta.W" - + "orkstationConfig.Host.GceInstance.GceShi" - + "eldedInstanceConfig\022\210\001\n\034confidential_ins" - + "tance_config\030\n \001(\0132b.google.cloud.workst" - + "ations.v1beta.WorkstationConfig.Host.Gce" - + "Instance.GceConfidentialInstanceConfig\022\031" - + "\n\021boot_disk_size_gb\030\t \001(\005\032q\n\031GceShielded" - + "InstanceConfig\022\032\n\022enable_secure_boot\030\001 \001" - + "(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable_integr" - + "ity_monitoring\030\003 \001(\010\032D\n\035GceConfidentialI" - + "nstanceConfig\022#\n\033enable_confidential_com" - + "pute\030\001 \001(\010B\010\n\006config\032\357\003\n\023PersistentDirec" - + "tory\022\022\n\nmount_path\030\001 \001(\t\022s\n\006gce_pd\030\002 \001(\013" - + "2a.google.cloud.workstations.v1beta.Work" - + "stationConfig.PersistentDirectory.GceReg" - + "ionalPersistentDiskH\000\032\274\002\n\031GceRegionalPer" - + "sistentDisk\022\017\n\007size_gb\030\001 \001(\005\022\017\n\007fs_type\030" - + "\002 \001(\t\022\021\n\tdisk_type\030\003 \001(\t\022\027\n\017source_snaps" - + "hot\030\005 \001(\t\022\207\001\n\016reclaim_policy\030\004 \001(\0162o.goo" - + "gle.cloud.workstations.v1beta.Workstatio" - + "nConfig.PersistentDirectory.GceRegionalP" - + "ersistentDisk.ReclaimPolicy\"G\n\rReclaimPo" - + "licy\022\036\n\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006" - + "DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\344" - + "\001\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002" - + " \003(\t\022\014\n\004args\030\003 \003(\t\022S\n\003env\030\004 \003(\0132F.google" - + ".cloud.workstations.v1beta.WorkstationCo" - + "nfig.Container.EnvEntry\022\023\n\013working_dir\030\005" - + " \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010EnvEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I\n\025Custome" - + "rEncryptionKey\022\017\n\007kms_key\030\001 \001(\t\022\037\n\027kms_k" - + "ey_service_account\030\002 \001(\t\0322\n\020AnnotationsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001:\261\001\352A\255\001\n-workstations.googleapis.com/" - + "WorkstationConfig\022yprojects/{project}/lo" - + "cations/{location}/workstationClusters/{" - + "workstation_cluster}/workstationConfigs/" - + "{workstation_config}R\001\001\"\244\007\n\013Workstation\022" - + "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003u" - + "id\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022" - + "S\n\013annotations\030\005 \003(\0132>.google.cloud.work" - + "stations.v1beta.Workstation.AnnotationsE" - + "ntry\022I\n\006labels\030\r \003(\01329.google.cloud.work" - + "stations.v1beta.Workstation.LabelsEntry\022" - + "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" - + "me\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022\014\n\004etag\030\t \001(\t\022G\n\005state\030\n \001(\01623.google." - + "cloud.workstations.v1beta.Workstation.St" - + "ateB\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020Annotatio" - + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022" - + "\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n" - + "\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352" - + "A\303\001\n\'workstations.googleapis.com/Worksta" - + "tion\022\224\001projects/{project}/locations/{loc" - + "ation}/workstationClusters/{workstation_" - + "cluster}/workstationConfigs/{workstation" - + "_config}/workstations/{workstation}R\001\001\"d" - + "\n\034GetWorkstationClusterRequest\022D\n\004name\030\001" - + " \001(\tB6\340A\002\372A0\n.workstations.googleapis.co" - + "m/WorkstationCluster\"\217\001\n\036ListWorkstation" - + "ClustersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022" - + ".workstations.googleapis.com/Workstation" - + "Cluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"\243\001\n\037ListWorkstationClustersRespon" - + "se\022R\n\024workstation_clusters\030\001 \003(\01324.googl" - + "e.cloud.workstations.v1beta.WorkstationC" - + "luster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"\375\001\n\037CreateWorkstationCluste" - + "rRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workst" - + "ations.googleapis.com/WorkstationCluster" - + "\022#\n\026workstation_cluster_id\030\002 \001(\tB\003\340A\002\022V\n" - + "\023workstation_cluster\030\003 \001(\01324.google.clou" - + "d.workstations.v1beta.WorkstationCluster" - + "B\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\335\001\n\037UpdateW" - + "orkstationClusterRequest\022V\n\023workstation_" - + "cluster\030\001 \001(\01324.google.cloud.workstation" - + "s.v1beta.WorkstationClusterB\003\340A\002\0224\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_m" - + "issing\030\004 \001(\010\"\233\001\n\037DeleteWorkstationCluste" - + "rRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.workstat" - + "ions.googleapis.com/WorkstationCluster\022\025" - + "\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005f" - + "orce\030\004 \001(\010\"b\n\033GetWorkstationConfigReques" - + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstations.go" - + "ogleapis.com/WorkstationConfig\"\216\001\n\035ListW" - + "orkstationConfigsRequest\022F\n\006parent\030\001 \001(\t" - + "B6\340A\002\372A0\n.workstations.googleapis.com/Wo" - + "rkstationCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"\240\001\n\036ListWorkstationConfi" - + "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" - + "3.google.cloud.workstations.v1beta.Works" - + "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\224\001\n#ListUsableWorksta" - + "tionConfigsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" - + "A0\n.workstations.googleapis.com/Workstat" - + "ionCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"\246\001\n$ListUsableWorkstationConfi" - + "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" - + "3.google.cloud.workstations.v1beta.Works" - + "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"\371\001\n\036CreateWorkstation" - + "ConfigRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.w" - + "orkstations.googleapis.com/WorkstationCl" - + "uster\022\"\n\025workstation_config_id\030\002 \001(\tB\003\340A" - + "\002\022T\n\022workstation_config\030\003 \001(\01323.google.c" - + "loud.workstations.v1beta.WorkstationConf" - + "igB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\332\001\n\036Updat" - + "eWorkstationConfigRequest\022T\n\022workstation" - + "_config\030\001 \001(\01323.google.cloud.workstation" - + "s.v1beta.WorkstationConfigB\003\340A\002\0224\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" - + "ssing\030\004 \001(\010\"\231\001\n\036DeleteWorkstationConfigR" - + "equest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstatio" - + "ns.googleapis.com/WorkstationConfig\022\025\n\rv" - + "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005forc" - + "e\030\004 \001(\010\"V\n\025GetWorkstationRequest\022=\n\004name" - + "\030\001 \001(\tB/\340A\002\372A)\n\'workstations.googleapis." - + "com/Workstation\"\207\001\n\027ListWorkstationsRequ" - + "est\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-workstation" - + "s.googleapis.com/WorkstationConfig\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\215\001\n\030Li" - + "stWorkstationsResponse\022C\n\014workstations\030\001" - + " \003(\0132-.google.cloud.workstations.v1beta." - + "Workstation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWorkstat" - + "ionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wor" - + "kstations.googleapis.com/WorkstationConf" - + "ig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"\223\001\n\036ListUsableWorkstationsResponse\022C\n\014" - + "workstations\030\001 \003(\0132-.google.cloud.workst" - + "ations.v1beta.Workstation\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\336\001\n\030Crea" - + "teWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340A" - + "\002\372A/\n-workstations.googleapis.com/Workst" - + "ationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A\002" - + "\022G\n\013workstation\030\003 \001(\0132-.google.cloud.wor" - + "kstations.v1beta.WorkstationB\003\340A\002\022\025\n\rval" - + "idate_only\030\004 \001(\010\"\307\001\n\030UpdateWorkstationRe" - + "quest\022G\n\013workstation\030\001 \001(\0132-.google.clou" - + "d.workstations.v1beta.WorkstationB\003\340A\002\0224" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\ra" - + "llow_missing\030\004 \001(\010\"~\n\030DeleteWorkstationR" - + "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" - + "ns.googleapis.com/Workstation\022\025\n\rvalidat" - + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorks" - + "tationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'wor" - + "kstations.googleapis.com/Workstation\022\025\n\r" - + "validate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026Sto" - + "pWorkstationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A" - + ")\n\'workstations.googleapis.com/Workstati" - + "on\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"" - + "\315\001\n\032GenerateAccessTokenRequest\022D\n\013workst" - + "ation\030\001 \001(\tB/\340A\002\372A)\n\'workstations.google" - + "apis.com/Workstation\0221\n\013expire_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampH\000\022(\n\003ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationH\000B\014\n\nexp" - + "iration\"d\n\033GenerateAccessTokenResponse\022\024" - + "\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(" - + "\0132\032.google.protobuf.Timestamp\"\200\002\n\021Operat" - + "ionMetadata\0224\n\013create_time\030\001 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" - + "target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016" - + "status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_c" - + "ancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 " - + "\001(\tB\003\340A\0032\337+\n\014Workstations\022\331\001\n\025GetWorksta" - + "tionCluster\022>.google.cloud.workstations." - + "v1beta.GetWorkstationClusterRequest\0324.go" - + "ogle.cloud.workstations.v1beta.Workstati" - + "onCluster\"J\202\323\344\223\002=\022;/v1beta/{name=project" - + "s/*/locations/*/workstationClusters/*}\332A" - + "\004name\022\354\001\n\027ListWorkstationClusters\022@.goog" - + "le.cloud.workstations.v1beta.ListWorksta" - + "tionClustersRequest\032A.google.cloud.works" - + "tations.v1beta.ListWorkstationClustersRe" - + "sponse\"L\202\323\344\223\002=\022;/v1beta/{parent=projects" - + "/*/locations/*}/workstationClusters\332A\006pa" - + "rent\022\265\002\n\030CreateWorkstationCluster\022A.goog" - + "le.cloud.workstations.v1beta.CreateWorks" - + "tationClusterRequest\032\035.google.longrunnin" - + "g.Operation\"\266\001\202\323\344\223\002R\";/v1beta/{parent=pr" - + "ojects/*/locations/*}/workstationCluster" - + "s:\023workstation_cluster\332A1parent,workstat" - + "ion_cluster,workstation_cluster_id\312A\'\n\022W" - + "orkstationCluster\022\021OperationMetadata\022\267\002\n" - + "\030UpdateWorkstationCluster\022A.google.cloud" - + ".workstations.v1beta.UpdateWorkstationCl" - + "usterRequest\032\035.google.longrunning.Operat" - + "ion\"\270\001\202\323\344\223\002f2O/v1beta/{workstation_clust" - + "er.name=projects/*/locations/*/workstati" - + "onClusters/*}:\023workstation_cluster\332A\037wor" - + "kstation_cluster,update_mask\312A\'\n\022Worksta" - + "tionCluster\022\021OperationMetadata\022\362\001\n\030Delet" - + "eWorkstationCluster\022A.google.cloud.works" - + "tations.v1beta.DeleteWorkstationClusterR" - + "equest\032\035.google.longrunning.Operation\"t\202" - + "\323\344\223\002=*;/v1beta/{name=projects/*/location" - + "s/*/workstationClusters/*}\332A\004name\312A\'\n\022Wo" - + "rkstationCluster\022\021OperationMetadata\022\353\001\n\024" - + "GetWorkstationConfig\022=.google.cloud.work" - + "stations.v1beta.GetWorkstationConfigRequ" - + "est\0323.google.cloud.workstations.v1beta.W" - + "orkstationConfig\"_\202\323\344\223\002R\022P/v1beta/{name=" - + "projects/*/locations/*/workstationCluste" - + "rs/*/workstationConfigs/*}\332A\004name\022\376\001\n\026Li" - + "stWorkstationConfigs\022?.google.cloud.work" - + "stations.v1beta.ListWorkstationConfigsRe" - + "quest\032@.google.cloud.workstations.v1beta" - + ".ListWorkstationConfigsResponse\"a\202\323\344\223\002R\022" - + "P/v1beta/{parent=projects/*/locations/*/" - + "workstationClusters/*}/workstationConfig" - + "s\332A\006parent\022\233\002\n\034ListUsableWorkstationConf" - + "igs\022E.google.cloud.workstations.v1beta.L" - + "istUsableWorkstationConfigsRequest\032F.goo" - + "gle.cloud.workstations.v1beta.ListUsable" - + "WorkstationConfigsResponse\"l\202\323\344\223\002]\022[/v1b" - + "eta/{parent=projects/*/locations/*/works" - + "tationClusters/*}/workstationConfigs:lis" - + "tUsable\332A\006parent\022\304\002\n\027CreateWorkstationCo" - + "nfig\022@.google.cloud.workstations.v1beta." - + "CreateWorkstationConfigRequest\032\035.google." - + "longrunning.Operation\"\307\001\202\323\344\223\002f\"P/v1beta/" - + "{parent=projects/*/locations/*/workstati" - + "onClusters/*}/workstationConfigs:\022workst" - + "ation_config\332A/parent,workstation_config" - + ",workstation_config_id\312A&\n\021WorkstationCo" - + "nfig\022\021OperationMetadata\022\306\002\n\027UpdateWorkst" - + "ationConfig\022@.google.cloud.workstations." - + "v1beta.UpdateWorkstationConfigRequest\032\035." - + "google.longrunning.Operation\"\311\001\202\323\344\223\002y2c/" - + "v1beta/{workstation_config.name=projects" - + "/*/locations/*/workstationClusters/*/wor" - + "kstationConfigs/*}:\022workstation_config\332A" - + "\036workstation_config,update_mask\312A&\n\021Work" - + "stationConfig\022\021OperationMetadata\022\205\002\n\027Del" - + "eteWorkstationConfig\022@.google.cloud.work" - + "stations.v1beta.DeleteWorkstationConfigR" - + "equest\032\035.google.longrunning.Operation\"\210\001" - + "\202\323\344\223\002R*P/v1beta/{name=projects/*/locatio" - + "ns/*/workstationClusters/*/workstationCo" - + "nfigs/*}\332A\004name\312A&\n\021WorkstationConfig\022\021O" - + "perationMetadata\022\350\001\n\016GetWorkstation\0227.go" - + "ogle.cloud.workstations.v1beta.GetWorkst" - + "ationRequest\032-.google.cloud.workstations" - + ".v1beta.Workstation\"n\202\323\344\223\002a\022_/v1beta/{na" - + "me=projects/*/locations/*/workstationClu" - + "sters/*/workstationConfigs/*/workstation" - + "s/*}\332A\004name\022\373\001\n\020ListWorkstations\0229.googl" - + "e.cloud.workstations.v1beta.ListWorkstat" - + "ionsRequest\032:.google.cloud.workstations." - + "v1beta.ListWorkstationsResponse\"p\202\323\344\223\002a\022" - + "_/v1beta/{parent=projects/*/locations/*/" - + "workstationClusters/*/workstationConfigs" - + "/*}/workstations\332A\006parent\022\230\002\n\026ListUsable" - + "Workstations\022?.google.cloud.workstations" - + ".v1beta.ListUsableWorkstationsRequest\032@." - + "google.cloud.workstations.v1beta.ListUsa" - + "bleWorkstationsResponse\"{\202\323\344\223\002l\022j/v1beta" - + "/{parent=projects/*/locations/*/workstat" - + "ionClusters/*/workstationConfigs/*}/work" - + "stations:listUsable\332A\006parent\022\254\002\n\021CreateW" - + "orkstation\022:.google.cloud.workstations.v" - + "1beta.CreateWorkstationRequest\032\035.google." - + "longrunning.Operation\"\273\001\202\323\344\223\002n\"_/v1beta/" - + "{parent=projects/*/locations/*/workstati" - + "onClusters/*/workstationConfigs/*}/works" - + "tations:\013workstation\332A!parent,workstatio" - + "n,workstation_id\312A \n\013Workstation\022\021Operat" - + "ionMetadata\022\256\002\n\021UpdateWorkstation\022:.goog" - + "le.cloud.workstations.v1beta.UpdateWorks" - + "tationRequest\032\035.google.longrunning.Opera" - + "tion\"\275\001\202\323\344\223\002z2k/v1beta/{workstation.name" - + "=projects/*/locations/*/workstationClust" - + "ers/*/workstationConfigs/*/workstations/" - + "*}:\013workstation\332A\027workstation,update_mas" - + "k\312A \n\013Workstation\022\021OperationMetadata\022\202\002\n" - + "\021DeleteWorkstation\022:.google.cloud.workst" - + "ations.v1beta.DeleteWorkstationRequest\032\035" - + ".google.longrunning.Operation\"\221\001\202\323\344\223\002a*_" - + "/v1beta/{name=projects/*/locations/*/wor" - + "kstationClusters/*/workstationConfigs/*/" - + "workstations/*}\332A\004name\312A \n\013Workstation\022\021" - + "OperationMetadata\022\211\002\n\020StartWorkstation\0229" - + ".google.cloud.workstations.v1beta.StartW" - + "orkstationRequest\032\035.google.longrunning.O" - + "peration\"\232\001\202\323\344\223\002j\"e/v1beta/{name=project" - + "s/*/locations/*/workstationClusters/*/wo" - + "rkstationConfigs/*/workstations/*}:start" - + ":\001*\332A\004name\312A \n\013Workstation\022\021OperationMet" - + "adata\022\206\002\n\017StopWorkstation\0228.google.cloud" - + ".workstations.v1beta.StopWorkstationRequ" - + "est\032\035.google.longrunning.Operation\"\231\001\202\323\344" - + "\223\002i\"d/v1beta/{name=projects/*/locations/" - + "*/workstationClusters/*/workstationConfi" - + "gs/*/workstations/*}:stop:\001*\332A\004name\312A \n\013" - + "Workstation\022\021OperationMetadata\022\250\002\n\023Gener" - + "ateAccessToken\022<.google.cloud.workstatio" - + "ns.v1beta.GenerateAccessTokenRequest\032=.g" - + "oogle.cloud.workstations.v1beta.Generate" - + "AccessTokenResponse\"\223\001\202\323\344\223\002\177\"z/v1beta/{w" - + "orkstation=projects/*/locations/*/workst" - + "ationClusters/*/workstationConfigs/*/wor" - + "kstations/*}:generateAccessToken:\001*\332A\013wo" - + "rkstation\032O\312A\033workstations.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/clou" - + "d-platformB\205\001\n$com.google.cloud.workstat" - + "ions.v1betaB\021WorkstationsProtoP\001ZHcloud." - + "google.com/go/workstations/apiv1beta/wor" - + "kstationspb;workstationspbb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "Network", - "Subnetwork", - "PrivateClusterConfig", - "Degraded", - "Conditions", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { - "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "IdleTimeout", - "RunningTimeout", - "Host", - "PersistentDirectories", - "Container", - "EncryptionKey", - "Degraded", - "Conditions", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor, - new java.lang.String[] { - "GceInstance", "Config", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { - "MachineType", - "ServiceAccount", - "Tags", - "PoolSize", - "DisablePublicIpAddresses", - "ShieldedInstanceConfig", - "ConfidentialInstanceConfig", - "BootDiskSizeGb", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { - "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { - "EnableConfidentialCompute", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { - "MountPath", "GcePd", "DirectoryType", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { - "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor, - new java.lang.String[] { - "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { - "KmsKey", "KmsKeyServiceAccount", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "State", - "Host", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { - "WorkstationClusters", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", "Force", - }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { - "WorkstationConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { - "WorkstationConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", "Force", - }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor, - new java.lang.String[] { - "Workstations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { - "Workstations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationId", "Workstation", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { - "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { - "Workstation", "ExpireTime", "Ttl", "Expiration", - }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { - "AccessToken", "ExpireTime", - }); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java new file mode 100644 index 000000000000..38c3b4ebd8bf --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java @@ -0,0 +1,4179 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.workstations.v1.stub.WorkstationsStub; +import com.google.cloud.workstations.v1.stub.WorkstationsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for interacting with Cloud Workstations. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+ *   WorkstationClusterName name =
+ *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+ *   WorkstationCluster response = workstationsClient.getWorkstationCluster(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the WorkstationsClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of WorkstationsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkstationsSettings workstationsSettings =
+ *     WorkstationsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkstationsSettings workstationsSettings =
+ *     WorkstationsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkstationsSettings workstationsSettings = WorkstationsSettings.newHttpJsonBuilder().build();
+ * WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class WorkstationsClient implements BackgroundResource { + private final WorkstationsSettings settings; + private final WorkstationsStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of WorkstationsClient with default settings. */ + public static final WorkstationsClient create() throws IOException { + return create(WorkstationsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of WorkstationsClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final WorkstationsClient create(WorkstationsSettings settings) throws IOException { + return new WorkstationsClient(settings); + } + + /** + * Constructs an instance of WorkstationsClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(WorkstationsSettings). + */ + public static final WorkstationsClient create(WorkstationsStub stub) { + return new WorkstationsClient(stub); + } + + /** + * Constructs an instance of WorkstationsClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected WorkstationsClient(WorkstationsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((WorkstationsStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected WorkstationsClient(WorkstationsStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final WorkstationsSettings getSettings() { + return settings; + } + + public WorkstationsStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationClusterName name =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+   *   WorkstationCluster response = workstationsClient.getWorkstationCluster(name);
+   * }
+   * }
+ * + * @param name Required. Name of the requested resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkstationCluster getWorkstationCluster(WorkstationClusterName name) { + GetWorkstationClusterRequest request = + GetWorkstationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkstationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString();
+   *   WorkstationCluster response = workstationsClient.getWorkstationCluster(name);
+   * }
+   * }
+ * + * @param name Required. Name of the requested resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkstationCluster getWorkstationCluster(String name) { + GetWorkstationClusterRequest request = + GetWorkstationClusterRequest.newBuilder().setName(name).build(); + return getWorkstationCluster(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetWorkstationClusterRequest request =
+   *       GetWorkstationClusterRequest.newBuilder()
+   *           .setName(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   WorkstationCluster response = workstationsClient.getWorkstationCluster(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkstationCluster getWorkstationCluster(GetWorkstationClusterRequest request) { + return getWorkstationClusterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetWorkstationClusterRequest request =
+   *       GetWorkstationClusterRequest.newBuilder()
+   *           .setName(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.getWorkstationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationCluster response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getWorkstationClusterCallable() { + return stub.getWorkstationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation clusters in the specified location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (WorkstationCluster element :
+   *       workstationsClient.listWorkstationClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationClustersPagedResponse listWorkstationClusters(LocationName parent) { + ListWorkstationClustersRequest request = + ListWorkstationClustersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkstationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation clusters in the specified location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (WorkstationCluster element :
+   *       workstationsClient.listWorkstationClusters(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationClustersPagedResponse listWorkstationClusters(String parent) { + ListWorkstationClustersRequest request = + ListWorkstationClustersRequest.newBuilder().setParent(parent).build(); + return listWorkstationClusters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation clusters in the specified location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationClustersRequest request =
+   *       ListWorkstationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (WorkstationCluster element :
+   *       workstationsClient.listWorkstationClusters(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationClustersPagedResponse listWorkstationClusters( + ListWorkstationClustersRequest request) { + return listWorkstationClustersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation clusters in the specified location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationClustersRequest request =
+   *       ListWorkstationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.listWorkstationClustersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (WorkstationCluster element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listWorkstationClustersPagedCallable() { + return stub.listWorkstationClustersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation clusters in the specified location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationClustersRequest request =
+   *       ListWorkstationClustersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListWorkstationClustersResponse response =
+   *         workstationsClient.listWorkstationClustersCallable().call(request);
+   *     for (WorkstationCluster element : response.getWorkstationClustersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listWorkstationClustersCallable() { + return stub.listWorkstationClustersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build();
+   *   String workstationClusterId = "workstationClusterId351421170";
+   *   WorkstationCluster response =
+   *       workstationsClient
+   *           .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @param workstationCluster Required. Workstation cluster to create. + * @param workstationClusterId Required. ID to use for the workstation cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationClusterAsync( + LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId) { + CreateWorkstationClusterRequest request = + CreateWorkstationClusterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkstationCluster(workstationCluster) + .setWorkstationClusterId(workstationClusterId) + .build(); + return createWorkstationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build();
+   *   String workstationClusterId = "workstationClusterId351421170";
+   *   WorkstationCluster response =
+   *       workstationsClient
+   *           .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @param workstationCluster Required. Workstation cluster to create. + * @param workstationClusterId Required. ID to use for the workstation cluster. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationClusterAsync( + String parent, WorkstationCluster workstationCluster, String workstationClusterId) { + CreateWorkstationClusterRequest request = + CreateWorkstationClusterRequest.newBuilder() + .setParent(parent) + .setWorkstationCluster(workstationCluster) + .setWorkstationClusterId(workstationClusterId) + .build(); + return createWorkstationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationClusterRequest request =
+   *       CreateWorkstationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkstationClusterId("workstationClusterId351421170")
+   *           .setWorkstationCluster(WorkstationCluster.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   WorkstationCluster response = workstationsClient.createWorkstationClusterAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationClusterAsync( + CreateWorkstationClusterRequest request) { + return createWorkstationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationClusterRequest request =
+   *       CreateWorkstationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkstationClusterId("workstationClusterId351421170")
+   *           .setWorkstationCluster(WorkstationCluster.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.createWorkstationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationCallable() { + return stub.createWorkstationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationClusterRequest request =
+   *       CreateWorkstationClusterRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkstationClusterId("workstationClusterId351421170")
+   *           .setWorkstationCluster(WorkstationCluster.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.createWorkstationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkstationClusterCallable() { + return stub.createWorkstationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   WorkstationCluster response =
+   *       workstationsClient.updateWorkstationClusterAsync(workstationCluster, updateMask).get();
+   * }
+   * }
+ * + * @param workstationCluster Required. Workstation cluster to update. + * @param updateMask Required. Mask that specifies which fields in the workstation cluster should + * be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateWorkstationClusterAsync( + WorkstationCluster workstationCluster, FieldMask updateMask) { + UpdateWorkstationClusterRequest request = + UpdateWorkstationClusterRequest.newBuilder() + .setWorkstationCluster(workstationCluster) + .setUpdateMask(updateMask) + .build(); + return updateWorkstationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationClusterRequest request =
+   *       UpdateWorkstationClusterRequest.newBuilder()
+   *           .setWorkstationCluster(WorkstationCluster.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   WorkstationCluster response = workstationsClient.updateWorkstationClusterAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateWorkstationClusterAsync( + UpdateWorkstationClusterRequest request) { + return updateWorkstationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationClusterRequest request =
+   *       UpdateWorkstationClusterRequest.newBuilder()
+   *           .setWorkstationCluster(WorkstationCluster.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.updateWorkstationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationCallable() { + return stub.updateWorkstationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationClusterRequest request =
+   *       UpdateWorkstationClusterRequest.newBuilder()
+   *           .setWorkstationCluster(WorkstationCluster.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.updateWorkstationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateWorkstationClusterCallable() { + return stub.updateWorkstationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationClusterName name =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+   *   WorkstationCluster response = workstationsClient.deleteWorkstationClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation cluster to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationClusterAsync( + WorkstationClusterName name) { + DeleteWorkstationClusterRequest request = + DeleteWorkstationClusterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteWorkstationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString();
+   *   WorkstationCluster response = workstationsClient.deleteWorkstationClusterAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation cluster to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationClusterAsync( + String name) { + DeleteWorkstationClusterRequest request = + DeleteWorkstationClusterRequest.newBuilder().setName(name).build(); + return deleteWorkstationClusterAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationClusterRequest request =
+   *       DeleteWorkstationClusterRequest.newBuilder()
+   *           .setName(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .setForce(true)
+   *           .build();
+   *   WorkstationCluster response = workstationsClient.deleteWorkstationClusterAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationClusterAsync( + DeleteWorkstationClusterRequest request) { + return deleteWorkstationClusterOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationClusterRequest request =
+   *       DeleteWorkstationClusterRequest.newBuilder()
+   *           .setName(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.deleteWorkstationClusterOperationCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationCluster response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationCallable() { + return stub.deleteWorkstationClusterOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationClusterRequest request =
+   *       DeleteWorkstationClusterRequest.newBuilder()
+   *           .setName(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.deleteWorkstationClusterCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteWorkstationClusterCallable() { + return stub.deleteWorkstationClusterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationConfigName name =
+   *       WorkstationConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]");
+   *   WorkstationConfig response = workstationsClient.getWorkstationConfig(name);
+   * }
+   * }
+ * + * @param name Required. Name of the requested resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkstationConfig getWorkstationConfig(WorkstationConfigName name) { + GetWorkstationConfigRequest request = + GetWorkstationConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getWorkstationConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]")
+   *           .toString();
+   *   WorkstationConfig response = workstationsClient.getWorkstationConfig(name);
+   * }
+   * }
+ * + * @param name Required. Name of the requested resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkstationConfig getWorkstationConfig(String name) { + GetWorkstationConfigRequest request = + GetWorkstationConfigRequest.newBuilder().setName(name).build(); + return getWorkstationConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetWorkstationConfigRequest request =
+   *       GetWorkstationConfigRequest.newBuilder()
+   *           .setName(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   WorkstationConfig response = workstationsClient.getWorkstationConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final WorkstationConfig getWorkstationConfig(GetWorkstationConfigRequest request) { + return getWorkstationConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetWorkstationConfigRequest request =
+   *       GetWorkstationConfigRequest.newBuilder()
+   *           .setName(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.getWorkstationConfigCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getWorkstationConfigCallable() { + return stub.getWorkstationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all WorkstationConfigs in the specified cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationClusterName parent =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+   *   for (WorkstationConfig element :
+   *       workstationsClient.listWorkstationConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationConfigsPagedResponse listWorkstationConfigs( + WorkstationClusterName parent) { + ListWorkstationConfigsRequest request = + ListWorkstationConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkstationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all WorkstationConfigs in the specified cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString();
+   *   for (WorkstationConfig element :
+   *       workstationsClient.listWorkstationConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationConfigsPagedResponse listWorkstationConfigs(String parent) { + ListWorkstationConfigsRequest request = + ListWorkstationConfigsRequest.newBuilder().setParent(parent).build(); + return listWorkstationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all WorkstationConfigs in the specified cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationConfigsRequest request =
+   *       ListWorkstationConfigsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (WorkstationConfig element :
+   *       workstationsClient.listWorkstationConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationConfigsPagedResponse listWorkstationConfigs( + ListWorkstationConfigsRequest request) { + return listWorkstationConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all WorkstationConfigs in the specified cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationConfigsRequest request =
+   *       ListWorkstationConfigsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.listWorkstationConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (WorkstationConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listWorkstationConfigsPagedCallable() { + return stub.listWorkstationConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all WorkstationConfigs in the specified cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationConfigsRequest request =
+   *       ListWorkstationConfigsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListWorkstationConfigsResponse response =
+   *         workstationsClient.listWorkstationConfigsCallable().call(request);
+   *     for (WorkstationConfig element : response.getWorkstationConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listWorkstationConfigsCallable() { + return stub.listWorkstationConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation configurations in the specified cluster on which the caller has the + * "workstations.workstation.create" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationClusterName parent =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+   *   for (WorkstationConfig element :
+   *       workstationsClient.listUsableWorkstationConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConfigs( + WorkstationClusterName parent) { + ListUsableWorkstationConfigsRequest request = + ListUsableWorkstationConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listUsableWorkstationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation configurations in the specified cluster on which the caller has the + * "workstations.workstation.create" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString();
+   *   for (WorkstationConfig element :
+   *       workstationsClient.listUsableWorkstationConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConfigs( + String parent) { + ListUsableWorkstationConfigsRequest request = + ListUsableWorkstationConfigsRequest.newBuilder().setParent(parent).build(); + return listUsableWorkstationConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation configurations in the specified cluster on which the caller has the + * "workstations.workstation.create" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListUsableWorkstationConfigsRequest request =
+   *       ListUsableWorkstationConfigsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (WorkstationConfig element :
+   *       workstationsClient.listUsableWorkstationConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableWorkstationConfigsPagedResponse listUsableWorkstationConfigs( + ListUsableWorkstationConfigsRequest request) { + return listUsableWorkstationConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation configurations in the specified cluster on which the caller has the + * "workstations.workstation.create" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListUsableWorkstationConfigsRequest request =
+   *       ListUsableWorkstationConfigsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.listUsableWorkstationConfigsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (WorkstationConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsPagedCallable() { + return stub.listUsableWorkstationConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all workstation configurations in the specified cluster on which the caller has the + * "workstations.workstation.create" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListUsableWorkstationConfigsRequest request =
+   *       ListUsableWorkstationConfigsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListUsableWorkstationConfigsResponse response =
+   *         workstationsClient.listUsableWorkstationConfigsCallable().call(request);
+   *     for (WorkstationConfig element : response.getWorkstationConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigsCallable() { + return stub.listUsableWorkstationConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationClusterName parent =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+   *   WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build();
+   *   String workstationConfigId = "workstationConfigId798542368";
+   *   WorkstationConfig response =
+   *       workstationsClient
+   *           .createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @param workstationConfig Required. Config to create. + * @param workstationConfigId Required. ID to use for the config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationConfigAsync( + WorkstationClusterName parent, + WorkstationConfig workstationConfig, + String workstationConfigId) { + CreateWorkstationConfigRequest request = + CreateWorkstationConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkstationConfig(workstationConfig) + .setWorkstationConfigId(workstationConfigId) + .build(); + return createWorkstationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent =
+   *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString();
+   *   WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build();
+   *   String workstationConfigId = "workstationConfigId798542368";
+   *   WorkstationConfig response =
+   *       workstationsClient
+   *           .createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @param workstationConfig Required. Config to create. + * @param workstationConfigId Required. ID to use for the config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationConfigAsync( + String parent, WorkstationConfig workstationConfig, String workstationConfigId) { + CreateWorkstationConfigRequest request = + CreateWorkstationConfigRequest.newBuilder() + .setParent(parent) + .setWorkstationConfig(workstationConfig) + .setWorkstationConfigId(workstationConfigId) + .build(); + return createWorkstationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationConfigRequest request =
+   *       CreateWorkstationConfigRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setWorkstationConfigId("workstationConfigId798542368")
+   *           .setWorkstationConfig(WorkstationConfig.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   WorkstationConfig response = workstationsClient.createWorkstationConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationConfigAsync( + CreateWorkstationConfigRequest request) { + return createWorkstationConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationConfigRequest request =
+   *       CreateWorkstationConfigRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setWorkstationConfigId("workstationConfigId798542368")
+   *           .setWorkstationConfig(WorkstationConfig.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.createWorkstationConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationCallable() { + return stub.createWorkstationConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationConfigRequest request =
+   *       CreateWorkstationConfigRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]")
+   *                   .toString())
+   *           .setWorkstationConfigId("workstationConfigId798542368")
+   *           .setWorkstationConfig(WorkstationConfig.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.createWorkstationConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkstationConfigCallable() { + return stub.createWorkstationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   WorkstationConfig response =
+   *       workstationsClient.updateWorkstationConfigAsync(workstationConfig, updateMask).get();
+   * }
+   * }
+ * + * @param workstationConfig Required. Config to update. + * @param updateMask Required. Mask specifying which fields in the config should be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateWorkstationConfigAsync( + WorkstationConfig workstationConfig, FieldMask updateMask) { + UpdateWorkstationConfigRequest request = + UpdateWorkstationConfigRequest.newBuilder() + .setWorkstationConfig(workstationConfig) + .setUpdateMask(updateMask) + .build(); + return updateWorkstationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationConfigRequest request =
+   *       UpdateWorkstationConfigRequest.newBuilder()
+   *           .setWorkstationConfig(WorkstationConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   WorkstationConfig response = workstationsClient.updateWorkstationConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateWorkstationConfigAsync( + UpdateWorkstationConfigRequest request) { + return updateWorkstationConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationConfigRequest request =
+   *       UpdateWorkstationConfigRequest.newBuilder()
+   *           .setWorkstationConfig(WorkstationConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.updateWorkstationConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationCallable() { + return stub.updateWorkstationConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationConfigRequest request =
+   *       UpdateWorkstationConfigRequest.newBuilder()
+   *           .setWorkstationConfig(WorkstationConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.updateWorkstationConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateWorkstationConfigCallable() { + return stub.updateWorkstationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationConfigName name =
+   *       WorkstationConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]");
+   *   WorkstationConfig response = workstationsClient.deleteWorkstationConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the config to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationConfigAsync( + WorkstationConfigName name) { + DeleteWorkstationConfigRequest request = + DeleteWorkstationConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteWorkstationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]")
+   *           .toString();
+   *   WorkstationConfig response = workstationsClient.deleteWorkstationConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the config to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationConfigAsync( + String name) { + DeleteWorkstationConfigRequest request = + DeleteWorkstationConfigRequest.newBuilder().setName(name).build(); + return deleteWorkstationConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationConfigRequest request =
+   *       DeleteWorkstationConfigRequest.newBuilder()
+   *           .setName(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .setForce(true)
+   *           .build();
+   *   WorkstationConfig response = workstationsClient.deleteWorkstationConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationConfigAsync( + DeleteWorkstationConfigRequest request) { + return deleteWorkstationConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationConfigRequest request =
+   *       DeleteWorkstationConfigRequest.newBuilder()
+   *           .setName(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.deleteWorkstationConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   WorkstationConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationCallable() { + return stub.deleteWorkstationConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation configuration. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationConfigRequest request =
+   *       DeleteWorkstationConfigRequest.newBuilder()
+   *           .setName(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.deleteWorkstationConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteWorkstationConfigCallable() { + return stub.deleteWorkstationConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationName name =
+   *       WorkstationName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[WORKSTATION_CLUSTER]",
+   *           "[WORKSTATION_CONFIG]",
+   *           "[WORKSTATION]");
+   *   Workstation response = workstationsClient.getWorkstation(name);
+   * }
+   * }
+ * + * @param name Required. Name of the requested resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Workstation getWorkstation(WorkstationName name) { + GetWorkstationRequest request = + GetWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getWorkstation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[WORKSTATION_CLUSTER]",
+   *               "[WORKSTATION_CONFIG]",
+   *               "[WORKSTATION]")
+   *           .toString();
+   *   Workstation response = workstationsClient.getWorkstation(name);
+   * }
+   * }
+ * + * @param name Required. Name of the requested resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Workstation getWorkstation(String name) { + GetWorkstationRequest request = GetWorkstationRequest.newBuilder().setName(name).build(); + return getWorkstation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetWorkstationRequest request =
+   *       GetWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .build();
+   *   Workstation response = workstationsClient.getWorkstation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Workstation getWorkstation(GetWorkstationRequest request) { + return getWorkstationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the requested workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetWorkstationRequest request =
+   *       GetWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.getWorkstationCallable().futureCall(request);
+   *   // Do something.
+   *   Workstation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getWorkstationCallable() { + return stub.getWorkstationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationConfigName parent =
+   *       WorkstationConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]");
+   *   for (Workstation element : workstationsClient.listWorkstations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationsPagedResponse listWorkstations(WorkstationConfigName parent) { + ListWorkstationsRequest request = + ListWorkstationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listWorkstations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent =
+   *       WorkstationConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]")
+   *           .toString();
+   *   for (Workstation element : workstationsClient.listWorkstations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationsPagedResponse listWorkstations(String parent) { + ListWorkstationsRequest request = + ListWorkstationsRequest.newBuilder().setParent(parent).build(); + return listWorkstations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationsRequest request =
+   *       ListWorkstationsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Workstation element : workstationsClient.listWorkstations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListWorkstationsPagedResponse listWorkstations(ListWorkstationsRequest request) { + return listWorkstationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationsRequest request =
+   *       ListWorkstationsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.listWorkstationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Workstation element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listWorkstationsPagedCallable() { + return stub.listWorkstationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListWorkstationsRequest request =
+   *       ListWorkstationsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListWorkstationsResponse response =
+   *         workstationsClient.listWorkstationsCallable().call(request);
+   *     for (Workstation element : response.getWorkstationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listWorkstationsCallable() { + return stub.listWorkstationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config on which the caller has the + * "workstations.workstations.use" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationConfigName parent =
+   *       WorkstationConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]");
+   *   for (Workstation element : workstationsClient.listUsableWorkstations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableWorkstationsPagedResponse listUsableWorkstations( + WorkstationConfigName parent) { + ListUsableWorkstationsRequest request = + ListUsableWorkstationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listUsableWorkstations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config on which the caller has the + * "workstations.workstations.use" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent =
+   *       WorkstationConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]")
+   *           .toString();
+   *   for (Workstation element : workstationsClient.listUsableWorkstations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableWorkstationsPagedResponse listUsableWorkstations(String parent) { + ListUsableWorkstationsRequest request = + ListUsableWorkstationsRequest.newBuilder().setParent(parent).build(); + return listUsableWorkstations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config on which the caller has the + * "workstations.workstations.use" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListUsableWorkstationsRequest request =
+   *       ListUsableWorkstationsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Workstation element : workstationsClient.listUsableWorkstations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableWorkstationsPagedResponse listUsableWorkstations( + ListUsableWorkstationsRequest request) { + return listUsableWorkstationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config on which the caller has the + * "workstations.workstations.use" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListUsableWorkstationsRequest request =
+   *       ListUsableWorkstationsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.listUsableWorkstationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Workstation element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsableWorkstationsPagedCallable() { + return stub.listUsableWorkstationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all Workstations using the specified config on which the caller has the + * "workstations.workstations.use" permission. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   ListUsableWorkstationsRequest request =
+   *       ListUsableWorkstationsRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListUsableWorkstationsResponse response =
+   *         workstationsClient.listUsableWorkstationsCallable().call(request);
+   *     for (Workstation element : response.getWorkstationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUsableWorkstationsCallable() { + return stub.listUsableWorkstationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationConfigName parent =
+   *       WorkstationConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]");
+   *   Workstation workstation = Workstation.newBuilder().build();
+   *   String workstationId = "workstationId560540030";
+   *   Workstation response =
+   *       workstationsClient.createWorkstationAsync(parent, workstation, workstationId).get();
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @param workstation Required. Workstation to create. + * @param workstationId Required. ID to use for the workstation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationAsync( + WorkstationConfigName parent, Workstation workstation, String workstationId) { + CreateWorkstationRequest request = + CreateWorkstationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkstation(workstation) + .setWorkstationId(workstationId) + .build(); + return createWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String parent =
+   *       WorkstationConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]")
+   *           .toString();
+   *   Workstation workstation = Workstation.newBuilder().build();
+   *   String workstationId = "workstationId560540030";
+   *   Workstation response =
+   *       workstationsClient.createWorkstationAsync(parent, workstation, workstationId).get();
+   * }
+   * }
+ * + * @param parent Required. Parent resource name. + * @param workstation Required. Workstation to create. + * @param workstationId Required. ID to use for the workstation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationAsync( + String parent, Workstation workstation, String workstationId) { + CreateWorkstationRequest request = + CreateWorkstationRequest.newBuilder() + .setParent(parent) + .setWorkstation(workstation) + .setWorkstationId(workstationId) + .build(); + return createWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationRequest request =
+   *       CreateWorkstationRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setWorkstationId("workstationId560540030")
+   *           .setWorkstation(Workstation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   Workstation response = workstationsClient.createWorkstationAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkstationAsync( + CreateWorkstationRequest request) { + return createWorkstationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationRequest request =
+   *       CreateWorkstationRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setWorkstationId("workstationId560540030")
+   *           .setWorkstation(Workstation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.createWorkstationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workstation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createWorkstationOperationCallable() { + return stub.createWorkstationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   CreateWorkstationRequest request =
+   *       CreateWorkstationRequest.newBuilder()
+   *           .setParent(
+   *               WorkstationConfigName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]")
+   *                   .toString())
+   *           .setWorkstationId("workstationId560540030")
+   *           .setWorkstation(Workstation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.createWorkstationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createWorkstationCallable() { + return stub.createWorkstationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   Workstation workstation = Workstation.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Workstation response =
+   *       workstationsClient.updateWorkstationAsync(workstation, updateMask).get();
+   * }
+   * }
+ * + * @param workstation Required. Workstation to update. + * @param updateMask Required. Mask specifying which fields in the config should be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateWorkstationAsync( + Workstation workstation, FieldMask updateMask) { + UpdateWorkstationRequest request = + UpdateWorkstationRequest.newBuilder() + .setWorkstation(workstation) + .setUpdateMask(updateMask) + .build(); + return updateWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationRequest request =
+   *       UpdateWorkstationRequest.newBuilder()
+   *           .setWorkstation(Workstation.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   Workstation response = workstationsClient.updateWorkstationAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateWorkstationAsync( + UpdateWorkstationRequest request) { + return updateWorkstationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationRequest request =
+   *       UpdateWorkstationRequest.newBuilder()
+   *           .setWorkstation(Workstation.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.updateWorkstationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workstation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateWorkstationOperationCallable() { + return stub.updateWorkstationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   UpdateWorkstationRequest request =
+   *       UpdateWorkstationRequest.newBuilder()
+   *           .setWorkstation(Workstation.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setAllowMissing(true)
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.updateWorkstationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateWorkstationCallable() { + return stub.updateWorkstationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationName name =
+   *       WorkstationName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[WORKSTATION_CLUSTER]",
+   *           "[WORKSTATION_CONFIG]",
+   *           "[WORKSTATION]");
+   *   Workstation response = workstationsClient.deleteWorkstationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationAsync( + WorkstationName name) { + DeleteWorkstationRequest request = + DeleteWorkstationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[WORKSTATION_CLUSTER]",
+   *               "[WORKSTATION_CONFIG]",
+   *               "[WORKSTATION]")
+   *           .toString();
+   *   Workstation response = workstationsClient.deleteWorkstationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationAsync(String name) { + DeleteWorkstationRequest request = DeleteWorkstationRequest.newBuilder().setName(name).build(); + return deleteWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationRequest request =
+   *       DeleteWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   Workstation response = workstationsClient.deleteWorkstationAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteWorkstationAsync( + DeleteWorkstationRequest request) { + return deleteWorkstationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationRequest request =
+   *       DeleteWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.deleteWorkstationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workstation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteWorkstationOperationCallable() { + return stub.deleteWorkstationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   DeleteWorkstationRequest request =
+   *       DeleteWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.deleteWorkstationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteWorkstationCallable() { + return stub.deleteWorkstationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts running a workstation so that users can connect to it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationName name =
+   *       WorkstationName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[WORKSTATION_CLUSTER]",
+   *           "[WORKSTATION_CONFIG]",
+   *           "[WORKSTATION]");
+   *   Workstation response = workstationsClient.startWorkstationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation to start. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startWorkstationAsync( + WorkstationName name) { + StartWorkstationRequest request = + StartWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return startWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts running a workstation so that users can connect to it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[WORKSTATION_CLUSTER]",
+   *               "[WORKSTATION_CONFIG]",
+   *               "[WORKSTATION]")
+   *           .toString();
+   *   Workstation response = workstationsClient.startWorkstationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation to start. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startWorkstationAsync(String name) { + StartWorkstationRequest request = StartWorkstationRequest.newBuilder().setName(name).build(); + return startWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts running a workstation so that users can connect to it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   StartWorkstationRequest request =
+   *       StartWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   Workstation response = workstationsClient.startWorkstationAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture startWorkstationAsync( + StartWorkstationRequest request) { + return startWorkstationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts running a workstation so that users can connect to it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   StartWorkstationRequest request =
+   *       StartWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.startWorkstationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workstation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + startWorkstationOperationCallable() { + return stub.startWorkstationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts running a workstation so that users can connect to it. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   StartWorkstationRequest request =
+   *       StartWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.startWorkstationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable startWorkstationCallable() { + return stub.startWorkstationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops running a workstation, reducing costs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationName name =
+   *       WorkstationName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[WORKSTATION_CLUSTER]",
+   *           "[WORKSTATION_CONFIG]",
+   *           "[WORKSTATION]");
+   *   Workstation response = workstationsClient.stopWorkstationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation to stop. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopWorkstationAsync( + WorkstationName name) { + StopWorkstationRequest request = + StopWorkstationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return stopWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops running a workstation, reducing costs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String name =
+   *       WorkstationName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[WORKSTATION_CLUSTER]",
+   *               "[WORKSTATION_CONFIG]",
+   *               "[WORKSTATION]")
+   *           .toString();
+   *   Workstation response = workstationsClient.stopWorkstationAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. Name of the workstation to stop. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopWorkstationAsync(String name) { + StopWorkstationRequest request = StopWorkstationRequest.newBuilder().setName(name).build(); + return stopWorkstationAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops running a workstation, reducing costs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   StopWorkstationRequest request =
+   *       StopWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   Workstation response = workstationsClient.stopWorkstationAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture stopWorkstationAsync( + StopWorkstationRequest request) { + return stopWorkstationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops running a workstation, reducing costs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   StopWorkstationRequest request =
+   *       StopWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       workstationsClient.stopWorkstationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workstation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + stopWorkstationOperationCallable() { + return stub.stopWorkstationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Stops running a workstation, reducing costs. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   StopWorkstationRequest request =
+   *       StopWorkstationRequest.newBuilder()
+   *           .setName(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.stopWorkstationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable stopWorkstationCallable() { + return stub.stopWorkstationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a short-lived credential that can be used to send authenticated and authorized traffic + * to a workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   WorkstationName workstation =
+   *       WorkstationName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[WORKSTATION_CLUSTER]",
+   *           "[WORKSTATION_CONFIG]",
+   *           "[WORKSTATION]");
+   *   GenerateAccessTokenResponse response = workstationsClient.generateAccessToken(workstation);
+   * }
+   * }
+ * + * @param workstation Required. Name of the workstation for which the access token should be + * generated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAccessTokenResponse generateAccessToken(WorkstationName workstation) { + GenerateAccessTokenRequest request = + GenerateAccessTokenRequest.newBuilder() + .setWorkstation(workstation == null ? null : workstation.toString()) + .build(); + return generateAccessToken(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a short-lived credential that can be used to send authenticated and authorized traffic + * to a workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   String workstation =
+   *       WorkstationName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[WORKSTATION_CLUSTER]",
+   *               "[WORKSTATION_CONFIG]",
+   *               "[WORKSTATION]")
+   *           .toString();
+   *   GenerateAccessTokenResponse response = workstationsClient.generateAccessToken(workstation);
+   * }
+   * }
+ * + * @param workstation Required. Name of the workstation for which the access token should be + * generated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAccessTokenResponse generateAccessToken(String workstation) { + GenerateAccessTokenRequest request = + GenerateAccessTokenRequest.newBuilder().setWorkstation(workstation).build(); + return generateAccessToken(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a short-lived credential that can be used to send authenticated and authorized traffic + * to a workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GenerateAccessTokenRequest request =
+   *       GenerateAccessTokenRequest.newBuilder()
+   *           .setWorkstation(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .build();
+   *   GenerateAccessTokenResponse response = workstationsClient.generateAccessToken(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateAccessTokenResponse generateAccessToken(GenerateAccessTokenRequest request) { + return generateAccessTokenCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a short-lived credential that can be used to send authenticated and authorized traffic + * to a workstation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GenerateAccessTokenRequest request =
+   *       GenerateAccessTokenRequest.newBuilder()
+   *           .setWorkstation(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.generateAccessTokenCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateAccessTokenResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + generateAccessTokenCallable() { + return stub.generateAccessTokenCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = workstationsClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = workstationsClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = workstationsClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = workstationsClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = workstationsClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               WorkstationName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[WORKSTATION_CLUSTER]",
+   *                       "[WORKSTATION_CONFIG]",
+   *                       "[WORKSTATION]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       workstationsClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListWorkstationClustersPagedResponse + extends AbstractPagedListResponse< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + WorkstationCluster, + ListWorkstationClustersPage, + ListWorkstationClustersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListWorkstationClustersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListWorkstationClustersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListWorkstationClustersPagedResponse(ListWorkstationClustersPage page) { + super(page, ListWorkstationClustersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListWorkstationClustersPage + extends AbstractPage< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + WorkstationCluster, + ListWorkstationClustersPage> { + + private ListWorkstationClustersPage( + PageContext< + ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> + context, + ListWorkstationClustersResponse response) { + super(context, response); + } + + private static ListWorkstationClustersPage createEmptyPage() { + return new ListWorkstationClustersPage(null, null); + } + + @Override + protected ListWorkstationClustersPage createPage( + PageContext< + ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> + context, + ListWorkstationClustersResponse response) { + return new ListWorkstationClustersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListWorkstationClustersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + WorkstationCluster, + ListWorkstationClustersPage, + ListWorkstationClustersFixedSizeCollection> { + + private ListWorkstationClustersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListWorkstationClustersFixedSizeCollection createEmptyCollection() { + return new ListWorkstationClustersFixedSizeCollection(null, 0); + } + + @Override + protected ListWorkstationClustersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListWorkstationClustersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListWorkstationConfigsPagedResponse + extends AbstractPagedListResponse< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + WorkstationConfig, + ListWorkstationConfigsPage, + ListWorkstationConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListWorkstationConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListWorkstationConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListWorkstationConfigsPagedResponse(ListWorkstationConfigsPage page) { + super(page, ListWorkstationConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListWorkstationConfigsPage + extends AbstractPage< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + WorkstationConfig, + ListWorkstationConfigsPage> { + + private ListWorkstationConfigsPage( + PageContext< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> + context, + ListWorkstationConfigsResponse response) { + super(context, response); + } + + private static ListWorkstationConfigsPage createEmptyPage() { + return new ListWorkstationConfigsPage(null, null); + } + + @Override + protected ListWorkstationConfigsPage createPage( + PageContext< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> + context, + ListWorkstationConfigsResponse response) { + return new ListWorkstationConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListWorkstationConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + WorkstationConfig, + ListWorkstationConfigsPage, + ListWorkstationConfigsFixedSizeCollection> { + + private ListWorkstationConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListWorkstationConfigsFixedSizeCollection createEmptyCollection() { + return new ListWorkstationConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListWorkstationConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListWorkstationConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListUsableWorkstationConfigsPagedResponse + extends AbstractPagedListResponse< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig, + ListUsableWorkstationConfigsPage, + ListUsableWorkstationConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsableWorkstationConfigsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListUsableWorkstationConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListUsableWorkstationConfigsPagedResponse(ListUsableWorkstationConfigsPage page) { + super(page, ListUsableWorkstationConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsableWorkstationConfigsPage + extends AbstractPage< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig, + ListUsableWorkstationConfigsPage> { + + private ListUsableWorkstationConfigsPage( + PageContext< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig> + context, + ListUsableWorkstationConfigsResponse response) { + super(context, response); + } + + private static ListUsableWorkstationConfigsPage createEmptyPage() { + return new ListUsableWorkstationConfigsPage(null, null); + } + + @Override + protected ListUsableWorkstationConfigsPage createPage( + PageContext< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig> + context, + ListUsableWorkstationConfigsResponse response) { + return new ListUsableWorkstationConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableWorkstationConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig, + ListUsableWorkstationConfigsPage, + ListUsableWorkstationConfigsFixedSizeCollection> { + + private ListUsableWorkstationConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableWorkstationConfigsFixedSizeCollection createEmptyCollection() { + return new ListUsableWorkstationConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableWorkstationConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableWorkstationConfigsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListWorkstationsPagedResponse + extends AbstractPagedListResponse< + ListWorkstationsRequest, + ListWorkstationsResponse, + Workstation, + ListWorkstationsPage, + ListWorkstationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListWorkstationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListWorkstationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListWorkstationsPagedResponse(ListWorkstationsPage page) { + super(page, ListWorkstationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListWorkstationsPage + extends AbstractPage< + ListWorkstationsRequest, ListWorkstationsResponse, Workstation, ListWorkstationsPage> { + + private ListWorkstationsPage( + PageContext context, + ListWorkstationsResponse response) { + super(context, response); + } + + private static ListWorkstationsPage createEmptyPage() { + return new ListWorkstationsPage(null, null); + } + + @Override + protected ListWorkstationsPage createPage( + PageContext context, + ListWorkstationsResponse response) { + return new ListWorkstationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListWorkstationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListWorkstationsRequest, + ListWorkstationsResponse, + Workstation, + ListWorkstationsPage, + ListWorkstationsFixedSizeCollection> { + + private ListWorkstationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListWorkstationsFixedSizeCollection createEmptyCollection() { + return new ListWorkstationsFixedSizeCollection(null, 0); + } + + @Override + protected ListWorkstationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListWorkstationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListUsableWorkstationsPagedResponse + extends AbstractPagedListResponse< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + Workstation, + ListUsableWorkstationsPage, + ListUsableWorkstationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsableWorkstationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListUsableWorkstationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListUsableWorkstationsPagedResponse(ListUsableWorkstationsPage page) { + super(page, ListUsableWorkstationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsableWorkstationsPage + extends AbstractPage< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + Workstation, + ListUsableWorkstationsPage> { + + private ListUsableWorkstationsPage( + PageContext + context, + ListUsableWorkstationsResponse response) { + super(context, response); + } + + private static ListUsableWorkstationsPage createEmptyPage() { + return new ListUsableWorkstationsPage(null, null); + } + + @Override + protected ListUsableWorkstationsPage createPage( + PageContext + context, + ListUsableWorkstationsResponse response) { + return new ListUsableWorkstationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableWorkstationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + Workstation, + ListUsableWorkstationsPage, + ListUsableWorkstationsFixedSizeCollection> { + + private ListUsableWorkstationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableWorkstationsFixedSizeCollection createEmptyCollection() { + return new ListUsableWorkstationsFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableWorkstationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableWorkstationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java new file mode 100644 index 000000000000..eba733fc738c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java @@ -0,0 +1,646 @@ +/* + * 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.workstations.v1; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.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.workstations.v1.stub.WorkstationsStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link WorkstationsClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (workstations.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getWorkstationCluster to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkstationsSettings.Builder workstationsSettingsBuilder = WorkstationsSettings.newBuilder();
+ * workstationsSettingsBuilder
+ *     .getWorkstationClusterSettings()
+ *     .setRetrySettings(
+ *         workstationsSettingsBuilder
+ *             .getWorkstationClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * WorkstationsSettings workstationsSettings = workstationsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class WorkstationsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getWorkstationCluster. */ + public UnaryCallSettings + getWorkstationClusterSettings() { + return ((WorkstationsStubSettings) getStubSettings()).getWorkstationClusterSettings(); + } + + /** Returns the object with the settings used for calls to listWorkstationClusters. */ + public PagedCallSettings< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + listWorkstationClustersSettings() { + return ((WorkstationsStubSettings) getStubSettings()).listWorkstationClustersSettings(); + } + + /** Returns the object with the settings used for calls to createWorkstationCluster. */ + public UnaryCallSettings + createWorkstationClusterSettings() { + return ((WorkstationsStubSettings) getStubSettings()).createWorkstationClusterSettings(); + } + + /** Returns the object with the settings used for calls to createWorkstationCluster. */ + public OperationCallSettings< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()) + .createWorkstationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkstationCluster. */ + public UnaryCallSettings + updateWorkstationClusterSettings() { + return ((WorkstationsStubSettings) getStubSettings()).updateWorkstationClusterSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkstationCluster. */ + public OperationCallSettings< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()) + .updateWorkstationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkstationCluster. */ + public UnaryCallSettings + deleteWorkstationClusterSettings() { + return ((WorkstationsStubSettings) getStubSettings()).deleteWorkstationClusterSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkstationCluster. */ + public OperationCallSettings< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()) + .deleteWorkstationClusterOperationSettings(); + } + + /** Returns the object with the settings used for calls to getWorkstationConfig. */ + public UnaryCallSettings + getWorkstationConfigSettings() { + return ((WorkstationsStubSettings) getStubSettings()).getWorkstationConfigSettings(); + } + + /** Returns the object with the settings used for calls to listWorkstationConfigs. */ + public PagedCallSettings< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + listWorkstationConfigsSettings() { + return ((WorkstationsStubSettings) getStubSettings()).listWorkstationConfigsSettings(); + } + + /** Returns the object with the settings used for calls to listUsableWorkstationConfigs. */ + public PagedCallSettings< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsSettings() { + return ((WorkstationsStubSettings) getStubSettings()).listUsableWorkstationConfigsSettings(); + } + + /** Returns the object with the settings used for calls to createWorkstationConfig. */ + public UnaryCallSettings + createWorkstationConfigSettings() { + return ((WorkstationsStubSettings) getStubSettings()).createWorkstationConfigSettings(); + } + + /** Returns the object with the settings used for calls to createWorkstationConfig. */ + public OperationCallSettings + createWorkstationConfigOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()) + .createWorkstationConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkstationConfig. */ + public UnaryCallSettings + updateWorkstationConfigSettings() { + return ((WorkstationsStubSettings) getStubSettings()).updateWorkstationConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkstationConfig. */ + public OperationCallSettings + updateWorkstationConfigOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()) + .updateWorkstationConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkstationConfig. */ + public UnaryCallSettings + deleteWorkstationConfigSettings() { + return ((WorkstationsStubSettings) getStubSettings()).deleteWorkstationConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkstationConfig. */ + public OperationCallSettings + deleteWorkstationConfigOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()) + .deleteWorkstationConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to getWorkstation. */ + public UnaryCallSettings getWorkstationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).getWorkstationSettings(); + } + + /** Returns the object with the settings used for calls to listWorkstations. */ + public PagedCallSettings< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + listWorkstationsSettings() { + return ((WorkstationsStubSettings) getStubSettings()).listWorkstationsSettings(); + } + + /** Returns the object with the settings used for calls to listUsableWorkstations. */ + public PagedCallSettings< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + listUsableWorkstationsSettings() { + return ((WorkstationsStubSettings) getStubSettings()).listUsableWorkstationsSettings(); + } + + /** Returns the object with the settings used for calls to createWorkstation. */ + public UnaryCallSettings createWorkstationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).createWorkstationSettings(); + } + + /** Returns the object with the settings used for calls to createWorkstation. */ + public OperationCallSettings + createWorkstationOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).createWorkstationOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkstation. */ + public UnaryCallSettings updateWorkstationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).updateWorkstationSettings(); + } + + /** Returns the object with the settings used for calls to updateWorkstation. */ + public OperationCallSettings + updateWorkstationOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).updateWorkstationOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkstation. */ + public UnaryCallSettings deleteWorkstationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).deleteWorkstationSettings(); + } + + /** Returns the object with the settings used for calls to deleteWorkstation. */ + public OperationCallSettings + deleteWorkstationOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).deleteWorkstationOperationSettings(); + } + + /** Returns the object with the settings used for calls to startWorkstation. */ + public UnaryCallSettings startWorkstationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).startWorkstationSettings(); + } + + /** Returns the object with the settings used for calls to startWorkstation. */ + public OperationCallSettings + startWorkstationOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).startWorkstationOperationSettings(); + } + + /** Returns the object with the settings used for calls to stopWorkstation. */ + public UnaryCallSettings stopWorkstationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).stopWorkstationSettings(); + } + + /** Returns the object with the settings used for calls to stopWorkstation. */ + public OperationCallSettings + stopWorkstationOperationSettings() { + return ((WorkstationsStubSettings) getStubSettings()).stopWorkstationOperationSettings(); + } + + /** Returns the object with the settings used for calls to generateAccessToken. */ + public UnaryCallSettings + generateAccessTokenSettings() { + return ((WorkstationsStubSettings) getStubSettings()).generateAccessTokenSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((WorkstationsStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((WorkstationsStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((WorkstationsStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final WorkstationsSettings create(WorkstationsStubSettings stub) + throws IOException { + return new WorkstationsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return WorkstationsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return WorkstationsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return WorkstationsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return WorkstationsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return WorkstationsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return WorkstationsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return WorkstationsStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WorkstationsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected WorkstationsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for WorkstationsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(WorkstationsStubSettings.newBuilder(clientContext)); + } + + protected Builder(WorkstationsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(WorkstationsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(WorkstationsStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(WorkstationsStubSettings.newHttpJsonBuilder()); + } + + public WorkstationsStubSettings.Builder getStubSettingsBuilder() { + return ((WorkstationsStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getWorkstationCluster. */ + public UnaryCallSettings.Builder + getWorkstationClusterSettings() { + return getStubSettingsBuilder().getWorkstationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to listWorkstationClusters. */ + public PagedCallSettings.Builder< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + listWorkstationClustersSettings() { + return getStubSettingsBuilder().listWorkstationClustersSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkstationCluster. */ + public UnaryCallSettings.Builder + createWorkstationClusterSettings() { + return getStubSettingsBuilder().createWorkstationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkstationCluster. */ + public OperationCallSettings.Builder< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationSettings() { + return getStubSettingsBuilder().createWorkstationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkstationCluster. */ + public UnaryCallSettings.Builder + updateWorkstationClusterSettings() { + return getStubSettingsBuilder().updateWorkstationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkstationCluster. */ + public OperationCallSettings.Builder< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationSettings() { + return getStubSettingsBuilder().updateWorkstationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkstationCluster. */ + public UnaryCallSettings.Builder + deleteWorkstationClusterSettings() { + return getStubSettingsBuilder().deleteWorkstationClusterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkstationCluster. */ + public OperationCallSettings.Builder< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationSettings() { + return getStubSettingsBuilder().deleteWorkstationClusterOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getWorkstationConfig. */ + public UnaryCallSettings.Builder + getWorkstationConfigSettings() { + return getStubSettingsBuilder().getWorkstationConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listWorkstationConfigs. */ + public PagedCallSettings.Builder< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + listWorkstationConfigsSettings() { + return getStubSettingsBuilder().listWorkstationConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to listUsableWorkstationConfigs. */ + public PagedCallSettings.Builder< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsSettings() { + return getStubSettingsBuilder().listUsableWorkstationConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkstationConfig. */ + public UnaryCallSettings.Builder + createWorkstationConfigSettings() { + return getStubSettingsBuilder().createWorkstationConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkstationConfig. */ + public OperationCallSettings.Builder< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationSettings() { + return getStubSettingsBuilder().createWorkstationConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkstationConfig. */ + public UnaryCallSettings.Builder + updateWorkstationConfigSettings() { + return getStubSettingsBuilder().updateWorkstationConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkstationConfig. */ + public OperationCallSettings.Builder< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationSettings() { + return getStubSettingsBuilder().updateWorkstationConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkstationConfig. */ + public UnaryCallSettings.Builder + deleteWorkstationConfigSettings() { + return getStubSettingsBuilder().deleteWorkstationConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkstationConfig. */ + public OperationCallSettings.Builder< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationSettings() { + return getStubSettingsBuilder().deleteWorkstationConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getWorkstation. */ + public UnaryCallSettings.Builder getWorkstationSettings() { + return getStubSettingsBuilder().getWorkstationSettings(); + } + + /** Returns the builder for the settings used for calls to listWorkstations. */ + public PagedCallSettings.Builder< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + listWorkstationsSettings() { + return getStubSettingsBuilder().listWorkstationsSettings(); + } + + /** Returns the builder for the settings used for calls to listUsableWorkstations. */ + public PagedCallSettings.Builder< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + listUsableWorkstationsSettings() { + return getStubSettingsBuilder().listUsableWorkstationsSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkstation. */ + public UnaryCallSettings.Builder + createWorkstationSettings() { + return getStubSettingsBuilder().createWorkstationSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkstation. */ + public OperationCallSettings.Builder + createWorkstationOperationSettings() { + return getStubSettingsBuilder().createWorkstationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkstation. */ + public UnaryCallSettings.Builder + updateWorkstationSettings() { + return getStubSettingsBuilder().updateWorkstationSettings(); + } + + /** Returns the builder for the settings used for calls to updateWorkstation. */ + public OperationCallSettings.Builder + updateWorkstationOperationSettings() { + return getStubSettingsBuilder().updateWorkstationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkstation. */ + public UnaryCallSettings.Builder + deleteWorkstationSettings() { + return getStubSettingsBuilder().deleteWorkstationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteWorkstation. */ + public OperationCallSettings.Builder + deleteWorkstationOperationSettings() { + return getStubSettingsBuilder().deleteWorkstationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to startWorkstation. */ + public UnaryCallSettings.Builder + startWorkstationSettings() { + return getStubSettingsBuilder().startWorkstationSettings(); + } + + /** Returns the builder for the settings used for calls to startWorkstation. */ + public OperationCallSettings.Builder + startWorkstationOperationSettings() { + return getStubSettingsBuilder().startWorkstationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to stopWorkstation. */ + public UnaryCallSettings.Builder stopWorkstationSettings() { + return getStubSettingsBuilder().stopWorkstationSettings(); + } + + /** Returns the builder for the settings used for calls to stopWorkstation. */ + public OperationCallSettings.Builder + stopWorkstationOperationSettings() { + return getStubSettingsBuilder().stopWorkstationOperationSettings(); + } + + /** Returns the builder for the settings used for calls to generateAccessToken. */ + public UnaryCallSettings.Builder + generateAccessTokenSettings() { + return getStubSettingsBuilder().generateAccessTokenSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public WorkstationsSettings build() throws IOException { + return new WorkstationsSettings(this); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json new file mode 100644 index 000000000000..e9118601e5d0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json @@ -0,0 +1,87 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.workstations.v1", + "libraryPackage": "com.google.cloud.workstations.v1", + "services": { + "Workstations": { + "clients": { + "grpc": { + "libraryClient": "WorkstationsClient", + "rpcs": { + "CreateWorkstation": { + "methods": ["createWorkstationAsync", "createWorkstationAsync", "createWorkstationAsync", "createWorkstationOperationCallable", "createWorkstationCallable"] + }, + "CreateWorkstationCluster": { + "methods": ["createWorkstationClusterAsync", "createWorkstationClusterAsync", "createWorkstationClusterAsync", "createWorkstationClusterOperationCallable", "createWorkstationClusterCallable"] + }, + "CreateWorkstationConfig": { + "methods": ["createWorkstationConfigAsync", "createWorkstationConfigAsync", "createWorkstationConfigAsync", "createWorkstationConfigOperationCallable", "createWorkstationConfigCallable"] + }, + "DeleteWorkstation": { + "methods": ["deleteWorkstationAsync", "deleteWorkstationAsync", "deleteWorkstationAsync", "deleteWorkstationOperationCallable", "deleteWorkstationCallable"] + }, + "DeleteWorkstationCluster": { + "methods": ["deleteWorkstationClusterAsync", "deleteWorkstationClusterAsync", "deleteWorkstationClusterAsync", "deleteWorkstationClusterOperationCallable", "deleteWorkstationClusterCallable"] + }, + "DeleteWorkstationConfig": { + "methods": ["deleteWorkstationConfigAsync", "deleteWorkstationConfigAsync", "deleteWorkstationConfigAsync", "deleteWorkstationConfigOperationCallable", "deleteWorkstationConfigCallable"] + }, + "GenerateAccessToken": { + "methods": ["generateAccessToken", "generateAccessToken", "generateAccessToken", "generateAccessTokenCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetWorkstation": { + "methods": ["getWorkstation", "getWorkstation", "getWorkstation", "getWorkstationCallable"] + }, + "GetWorkstationCluster": { + "methods": ["getWorkstationCluster", "getWorkstationCluster", "getWorkstationCluster", "getWorkstationClusterCallable"] + }, + "GetWorkstationConfig": { + "methods": ["getWorkstationConfig", "getWorkstationConfig", "getWorkstationConfig", "getWorkstationConfigCallable"] + }, + "ListUsableWorkstationConfigs": { + "methods": ["listUsableWorkstationConfigs", "listUsableWorkstationConfigs", "listUsableWorkstationConfigs", "listUsableWorkstationConfigsPagedCallable", "listUsableWorkstationConfigsCallable"] + }, + "ListUsableWorkstations": { + "methods": ["listUsableWorkstations", "listUsableWorkstations", "listUsableWorkstations", "listUsableWorkstationsPagedCallable", "listUsableWorkstationsCallable"] + }, + "ListWorkstationClusters": { + "methods": ["listWorkstationClusters", "listWorkstationClusters", "listWorkstationClusters", "listWorkstationClustersPagedCallable", "listWorkstationClustersCallable"] + }, + "ListWorkstationConfigs": { + "methods": ["listWorkstationConfigs", "listWorkstationConfigs", "listWorkstationConfigs", "listWorkstationConfigsPagedCallable", "listWorkstationConfigsCallable"] + }, + "ListWorkstations": { + "methods": ["listWorkstations", "listWorkstations", "listWorkstations", "listWorkstationsPagedCallable", "listWorkstationsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "StartWorkstation": { + "methods": ["startWorkstationAsync", "startWorkstationAsync", "startWorkstationAsync", "startWorkstationOperationCallable", "startWorkstationCallable"] + }, + "StopWorkstation": { + "methods": ["stopWorkstationAsync", "stopWorkstationAsync", "stopWorkstationAsync", "stopWorkstationOperationCallable", "stopWorkstationCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateWorkstation": { + "methods": ["updateWorkstationAsync", "updateWorkstationAsync", "updateWorkstationOperationCallable", "updateWorkstationCallable"] + }, + "UpdateWorkstationCluster": { + "methods": ["updateWorkstationClusterAsync", "updateWorkstationClusterAsync", "updateWorkstationClusterOperationCallable", "updateWorkstationClusterCallable"] + }, + "UpdateWorkstationConfig": { + "methods": ["updateWorkstationConfigAsync", "updateWorkstationConfigAsync", "updateWorkstationConfigOperationCallable", "updateWorkstationConfigCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java new file mode 100644 index 000000000000..4bf819d05530 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +/** + * A client to Cloud Workstations API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= WorkstationsClient ======================= + * + *

Service Description: Service for interacting with Cloud Workstations. + * + *

Sample for WorkstationsClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (WorkstationsClient workstationsClient = WorkstationsClient.create()) {
+ *   WorkstationClusterName name =
+ *       WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]");
+ *   WorkstationCluster response = workstationsClient.getWorkstationCluster(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.workstations.v1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java new file mode 100644 index 000000000000..96109ee27ff6 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java @@ -0,0 +1,113 @@ +/* + * 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.workstations.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Workstations service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcWorkstationsCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java new file mode 100644 index 000000000000..24523ba51014 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java @@ -0,0 +1,1175 @@ +/* + * 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.workstations.v1.stub; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.GetWorkstationClusterRequest; +import com.google.cloud.workstations.v1.GetWorkstationConfigRequest; +import com.google.cloud.workstations.v1.GetWorkstationRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationsResponse; +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.ListWorkstationClustersResponse; +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.ListWorkstationsResponse; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Workstations service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcWorkstationsStub extends WorkstationsStub { + private static final MethodDescriptor + getWorkstationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/GetWorkstationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkstationCluster.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListWorkstationClustersRequest, ListWorkstationClustersResponse> + listWorkstationClustersMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/ListWorkstationClusters") + .setRequestMarshaller( + ProtoUtils.marshaller(ListWorkstationClustersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListWorkstationClustersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createWorkstationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/CreateWorkstationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateWorkstationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/UpdateWorkstationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteWorkstationClusterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/DeleteWorkstationCluster") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getWorkstationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/GetWorkstationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(WorkstationConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse> + listWorkstationConfigsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/ListWorkstationConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListWorkstationConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/ListUsableWorkstationConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createWorkstationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/CreateWorkstationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateWorkstationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/UpdateWorkstationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteWorkstationConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/DeleteWorkstationConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getWorkstationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/GetWorkstation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Workstation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listWorkstationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/ListWorkstations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListWorkstationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListUsableWorkstationsRequest, ListUsableWorkstationsResponse> + listUsableWorkstationsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/ListUsableWorkstations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUsableWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUsableWorkstationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createWorkstationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/CreateWorkstation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateWorkstationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/UpdateWorkstation") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteWorkstationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/DeleteWorkstation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + startWorkstationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/StartWorkstation") + .setRequestMarshaller( + ProtoUtils.marshaller(StartWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + stopWorkstationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/StopWorkstation") + .setRequestMarshaller( + ProtoUtils.marshaller(StopWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + generateAccessTokenMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.workstations.v1.Workstations/GenerateAccessToken") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateAccessTokenRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateAccessTokenResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + getWorkstationClusterCallable; + private final UnaryCallable + listWorkstationClustersCallable; + private final UnaryCallable + listWorkstationClustersPagedCallable; + private final UnaryCallable + createWorkstationClusterCallable; + private final OperationCallable< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationCallable; + private final UnaryCallable + updateWorkstationClusterCallable; + private final OperationCallable< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationCallable; + private final UnaryCallable + deleteWorkstationClusterCallable; + private final OperationCallable< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationCallable; + private final UnaryCallable + getWorkstationConfigCallable; + private final UnaryCallable + listWorkstationConfigsCallable; + private final UnaryCallable + listWorkstationConfigsPagedCallable; + private final UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigsCallable; + private final UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsPagedCallable; + private final UnaryCallable + createWorkstationConfigCallable; + private final OperationCallable< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationCallable; + private final UnaryCallable + updateWorkstationConfigCallable; + private final OperationCallable< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationCallable; + private final UnaryCallable + deleteWorkstationConfigCallable; + private final OperationCallable< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationCallable; + private final UnaryCallable getWorkstationCallable; + private final UnaryCallable + listWorkstationsCallable; + private final UnaryCallable + listWorkstationsPagedCallable; + private final UnaryCallable + listUsableWorkstationsCallable; + private final UnaryCallable + listUsableWorkstationsPagedCallable; + private final UnaryCallable createWorkstationCallable; + private final OperationCallable + createWorkstationOperationCallable; + private final UnaryCallable updateWorkstationCallable; + private final OperationCallable + updateWorkstationOperationCallable; + private final UnaryCallable deleteWorkstationCallable; + private final OperationCallable + deleteWorkstationOperationCallable; + private final UnaryCallable startWorkstationCallable; + private final OperationCallable + startWorkstationOperationCallable; + private final UnaryCallable stopWorkstationCallable; + private final OperationCallable + stopWorkstationOperationCallable; + private final UnaryCallable + generateAccessTokenCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcWorkstationsStub create(WorkstationsStubSettings settings) + throws IOException { + return new GrpcWorkstationsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcWorkstationsStub create(ClientContext clientContext) throws IOException { + return new GrpcWorkstationsStub(WorkstationsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcWorkstationsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcWorkstationsStub( + WorkstationsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcWorkstationsStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcWorkstationsStub(WorkstationsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcWorkstationsCallableFactory()); + } + + /** + * Constructs an instance of GrpcWorkstationsStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcWorkstationsStub( + WorkstationsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + getWorkstationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkstationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listWorkstationClustersTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listWorkstationClustersMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + createWorkstationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkstationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateWorkstationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateWorkstationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "workstation_cluster.name", + String.valueOf(request.getWorkstationCluster().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteWorkstationClusterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkstationClusterMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + getWorkstationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkstationConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listWorkstationConfigsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listWorkstationConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + listUsableWorkstationConfigsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listUsableWorkstationConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + createWorkstationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkstationConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateWorkstationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateWorkstationConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "workstation_config.name", + String.valueOf(request.getWorkstationConfig().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteWorkstationConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkstationConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getWorkstationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getWorkstationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listWorkstationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listWorkstationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + listUsableWorkstationsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableWorkstationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings createWorkstationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkstationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateWorkstationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateWorkstationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "workstation.name", String.valueOf(request.getWorkstation().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteWorkstationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkstationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings startWorkstationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startWorkstationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings stopWorkstationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(stopWorkstationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + generateAccessTokenTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(generateAccessTokenMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("workstation", String.valueOf(request.getWorkstation())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + + this.getWorkstationClusterCallable = + callableFactory.createUnaryCallable( + getWorkstationClusterTransportSettings, + settings.getWorkstationClusterSettings(), + clientContext); + this.listWorkstationClustersCallable = + callableFactory.createUnaryCallable( + listWorkstationClustersTransportSettings, + settings.listWorkstationClustersSettings(), + clientContext); + this.listWorkstationClustersPagedCallable = + callableFactory.createPagedCallable( + listWorkstationClustersTransportSettings, + settings.listWorkstationClustersSettings(), + clientContext); + this.createWorkstationClusterCallable = + callableFactory.createUnaryCallable( + createWorkstationClusterTransportSettings, + settings.createWorkstationClusterSettings(), + clientContext); + this.createWorkstationClusterOperationCallable = + callableFactory.createOperationCallable( + createWorkstationClusterTransportSettings, + settings.createWorkstationClusterOperationSettings(), + clientContext, + operationsStub); + this.updateWorkstationClusterCallable = + callableFactory.createUnaryCallable( + updateWorkstationClusterTransportSettings, + settings.updateWorkstationClusterSettings(), + clientContext); + this.updateWorkstationClusterOperationCallable = + callableFactory.createOperationCallable( + updateWorkstationClusterTransportSettings, + settings.updateWorkstationClusterOperationSettings(), + clientContext, + operationsStub); + this.deleteWorkstationClusterCallable = + callableFactory.createUnaryCallable( + deleteWorkstationClusterTransportSettings, + settings.deleteWorkstationClusterSettings(), + clientContext); + this.deleteWorkstationClusterOperationCallable = + callableFactory.createOperationCallable( + deleteWorkstationClusterTransportSettings, + settings.deleteWorkstationClusterOperationSettings(), + clientContext, + operationsStub); + this.getWorkstationConfigCallable = + callableFactory.createUnaryCallable( + getWorkstationConfigTransportSettings, + settings.getWorkstationConfigSettings(), + clientContext); + this.listWorkstationConfigsCallable = + callableFactory.createUnaryCallable( + listWorkstationConfigsTransportSettings, + settings.listWorkstationConfigsSettings(), + clientContext); + this.listWorkstationConfigsPagedCallable = + callableFactory.createPagedCallable( + listWorkstationConfigsTransportSettings, + settings.listWorkstationConfigsSettings(), + clientContext); + this.listUsableWorkstationConfigsCallable = + callableFactory.createUnaryCallable( + listUsableWorkstationConfigsTransportSettings, + settings.listUsableWorkstationConfigsSettings(), + clientContext); + this.listUsableWorkstationConfigsPagedCallable = + callableFactory.createPagedCallable( + listUsableWorkstationConfigsTransportSettings, + settings.listUsableWorkstationConfigsSettings(), + clientContext); + this.createWorkstationConfigCallable = + callableFactory.createUnaryCallable( + createWorkstationConfigTransportSettings, + settings.createWorkstationConfigSettings(), + clientContext); + this.createWorkstationConfigOperationCallable = + callableFactory.createOperationCallable( + createWorkstationConfigTransportSettings, + settings.createWorkstationConfigOperationSettings(), + clientContext, + operationsStub); + this.updateWorkstationConfigCallable = + callableFactory.createUnaryCallable( + updateWorkstationConfigTransportSettings, + settings.updateWorkstationConfigSettings(), + clientContext); + this.updateWorkstationConfigOperationCallable = + callableFactory.createOperationCallable( + updateWorkstationConfigTransportSettings, + settings.updateWorkstationConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteWorkstationConfigCallable = + callableFactory.createUnaryCallable( + deleteWorkstationConfigTransportSettings, + settings.deleteWorkstationConfigSettings(), + clientContext); + this.deleteWorkstationConfigOperationCallable = + callableFactory.createOperationCallable( + deleteWorkstationConfigTransportSettings, + settings.deleteWorkstationConfigOperationSettings(), + clientContext, + operationsStub); + this.getWorkstationCallable = + callableFactory.createUnaryCallable( + getWorkstationTransportSettings, settings.getWorkstationSettings(), clientContext); + this.listWorkstationsCallable = + callableFactory.createUnaryCallable( + listWorkstationsTransportSettings, settings.listWorkstationsSettings(), clientContext); + this.listWorkstationsPagedCallable = + callableFactory.createPagedCallable( + listWorkstationsTransportSettings, settings.listWorkstationsSettings(), clientContext); + this.listUsableWorkstationsCallable = + callableFactory.createUnaryCallable( + listUsableWorkstationsTransportSettings, + settings.listUsableWorkstationsSettings(), + clientContext); + this.listUsableWorkstationsPagedCallable = + callableFactory.createPagedCallable( + listUsableWorkstationsTransportSettings, + settings.listUsableWorkstationsSettings(), + clientContext); + this.createWorkstationCallable = + callableFactory.createUnaryCallable( + createWorkstationTransportSettings, + settings.createWorkstationSettings(), + clientContext); + this.createWorkstationOperationCallable = + callableFactory.createOperationCallable( + createWorkstationTransportSettings, + settings.createWorkstationOperationSettings(), + clientContext, + operationsStub); + this.updateWorkstationCallable = + callableFactory.createUnaryCallable( + updateWorkstationTransportSettings, + settings.updateWorkstationSettings(), + clientContext); + this.updateWorkstationOperationCallable = + callableFactory.createOperationCallable( + updateWorkstationTransportSettings, + settings.updateWorkstationOperationSettings(), + clientContext, + operationsStub); + this.deleteWorkstationCallable = + callableFactory.createUnaryCallable( + deleteWorkstationTransportSettings, + settings.deleteWorkstationSettings(), + clientContext); + this.deleteWorkstationOperationCallable = + callableFactory.createOperationCallable( + deleteWorkstationTransportSettings, + settings.deleteWorkstationOperationSettings(), + clientContext, + operationsStub); + this.startWorkstationCallable = + callableFactory.createUnaryCallable( + startWorkstationTransportSettings, settings.startWorkstationSettings(), clientContext); + this.startWorkstationOperationCallable = + callableFactory.createOperationCallable( + startWorkstationTransportSettings, + settings.startWorkstationOperationSettings(), + clientContext, + operationsStub); + this.stopWorkstationCallable = + callableFactory.createUnaryCallable( + stopWorkstationTransportSettings, settings.stopWorkstationSettings(), clientContext); + this.stopWorkstationOperationCallable = + callableFactory.createOperationCallable( + stopWorkstationTransportSettings, + settings.stopWorkstationOperationSettings(), + clientContext, + operationsStub); + this.generateAccessTokenCallable = + callableFactory.createUnaryCallable( + generateAccessTokenTransportSettings, + settings.generateAccessTokenSettings(), + clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + getWorkstationClusterCallable() { + return getWorkstationClusterCallable; + } + + @Override + public UnaryCallable + listWorkstationClustersCallable() { + return listWorkstationClustersCallable; + } + + @Override + public UnaryCallable + listWorkstationClustersPagedCallable() { + return listWorkstationClustersPagedCallable; + } + + @Override + public UnaryCallable + createWorkstationClusterCallable() { + return createWorkstationClusterCallable; + } + + @Override + public OperationCallable + createWorkstationClusterOperationCallable() { + return createWorkstationClusterOperationCallable; + } + + @Override + public UnaryCallable + updateWorkstationClusterCallable() { + return updateWorkstationClusterCallable; + } + + @Override + public OperationCallable + updateWorkstationClusterOperationCallable() { + return updateWorkstationClusterOperationCallable; + } + + @Override + public UnaryCallable + deleteWorkstationClusterCallable() { + return deleteWorkstationClusterCallable; + } + + @Override + public OperationCallable + deleteWorkstationClusterOperationCallable() { + return deleteWorkstationClusterOperationCallable; + } + + @Override + public UnaryCallable + getWorkstationConfigCallable() { + return getWorkstationConfigCallable; + } + + @Override + public UnaryCallable + listWorkstationConfigsCallable() { + return listWorkstationConfigsCallable; + } + + @Override + public UnaryCallable + listWorkstationConfigsPagedCallable() { + return listWorkstationConfigsPagedCallable; + } + + @Override + public UnaryCallable + listUsableWorkstationConfigsCallable() { + return listUsableWorkstationConfigsCallable; + } + + @Override + public UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsPagedCallable() { + return listUsableWorkstationConfigsPagedCallable; + } + + @Override + public UnaryCallable + createWorkstationConfigCallable() { + return createWorkstationConfigCallable; + } + + @Override + public OperationCallable + createWorkstationConfigOperationCallable() { + return createWorkstationConfigOperationCallable; + } + + @Override + public UnaryCallable + updateWorkstationConfigCallable() { + return updateWorkstationConfigCallable; + } + + @Override + public OperationCallable + updateWorkstationConfigOperationCallable() { + return updateWorkstationConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteWorkstationConfigCallable() { + return deleteWorkstationConfigCallable; + } + + @Override + public OperationCallable + deleteWorkstationConfigOperationCallable() { + return deleteWorkstationConfigOperationCallable; + } + + @Override + public UnaryCallable getWorkstationCallable() { + return getWorkstationCallable; + } + + @Override + public UnaryCallable + listWorkstationsCallable() { + return listWorkstationsCallable; + } + + @Override + public UnaryCallable + listWorkstationsPagedCallable() { + return listWorkstationsPagedCallable; + } + + @Override + public UnaryCallable + listUsableWorkstationsCallable() { + return listUsableWorkstationsCallable; + } + + @Override + public UnaryCallable + listUsableWorkstationsPagedCallable() { + return listUsableWorkstationsPagedCallable; + } + + @Override + public UnaryCallable createWorkstationCallable() { + return createWorkstationCallable; + } + + @Override + public OperationCallable + createWorkstationOperationCallable() { + return createWorkstationOperationCallable; + } + + @Override + public UnaryCallable updateWorkstationCallable() { + return updateWorkstationCallable; + } + + @Override + public OperationCallable + updateWorkstationOperationCallable() { + return updateWorkstationOperationCallable; + } + + @Override + public UnaryCallable deleteWorkstationCallable() { + return deleteWorkstationCallable; + } + + @Override + public OperationCallable + deleteWorkstationOperationCallable() { + return deleteWorkstationOperationCallable; + } + + @Override + public UnaryCallable startWorkstationCallable() { + return startWorkstationCallable; + } + + @Override + public OperationCallable + startWorkstationOperationCallable() { + return startWorkstationOperationCallable; + } + + @Override + public UnaryCallable stopWorkstationCallable() { + return stopWorkstationCallable; + } + + @Override + public OperationCallable + stopWorkstationOperationCallable() { + return stopWorkstationOperationCallable; + } + + @Override + public UnaryCallable + generateAccessTokenCallable() { + return generateAccessTokenCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java new file mode 100644 index 000000000000..cf21164eef00 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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.workstations.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Workstations service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonWorkstationsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java new file mode 100644 index 000000000000..c9241e24e736 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java @@ -0,0 +1,1815 @@ +/* + * 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.workstations.v1.stub; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +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; +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.GetWorkstationClusterRequest; +import com.google.cloud.workstations.v1.GetWorkstationConfigRequest; +import com.google.cloud.workstations.v1.GetWorkstationRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationsResponse; +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.ListWorkstationClustersResponse; +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.ListWorkstationsResponse; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Workstations service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonWorkstationsStub extends WorkstationsStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(OperationMetadata.getDescriptor()) + .add(WorkstationCluster.getDescriptor()) + .add(WorkstationConfig.getDescriptor()) + .add(Workstation.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + getWorkstationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/GetWorkstationCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkstationCluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListWorkstationClustersRequest, ListWorkstationClustersResponse> + listWorkstationClustersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/ListWorkstationClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/workstationClusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkstationClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createWorkstationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/CreateWorkstationCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/workstationClusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam( + fields, "workstationClusterId", request.getWorkstationClusterId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "workstationCluster", request.getWorkstationCluster(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkstationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateWorkstationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/UpdateWorkstationCluster") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{workstationCluster.name=projects/*/locations/*/workstationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "workstationCluster.name", + request.getWorkstationCluster().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "workstationCluster", request.getWorkstationCluster(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateWorkstationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteWorkstationClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/DeleteWorkstationCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteWorkstationClusterRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getWorkstationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/GetWorkstationConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(WorkstationConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse> + listWorkstationConfigsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/ListWorkstationConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkstationConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/ListUsableWorkstationConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs:listUsable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUsableWorkstationConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createWorkstationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/CreateWorkstationConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam( + fields, "workstationConfigId", request.getWorkstationConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "workstationConfig", request.getWorkstationConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkstationConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateWorkstationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/UpdateWorkstationConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{workstationConfig.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "workstationConfig.name", + request.getWorkstationConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "workstationConfig", request.getWorkstationConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateWorkstationConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteWorkstationConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.workstations.v1.Workstations/DeleteWorkstationConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteWorkstationConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getWorkstationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/GetWorkstation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Workstation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listWorkstationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/ListWorkstations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListWorkstationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListUsableWorkstationsRequest, ListUsableWorkstationsResponse> + listUsableWorkstationsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/ListUsableWorkstations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations:listUsable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUsableWorkstationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createWorkstationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/CreateWorkstation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam( + fields, "workstationId", request.getWorkstationId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workstation", request.getWorkstation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkstationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateWorkstationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/UpdateWorkstation") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{workstation.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "workstation.name", request.getWorkstation().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workstation", request.getWorkstation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateWorkstationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteWorkstationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/DeleteWorkstation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteWorkstationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + startWorkstationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/StartWorkstation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:start", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StartWorkstationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + stopWorkstationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/StopWorkstation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:stop", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (StopWorkstationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + generateAccessTokenMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.workstations.v1.Workstations/GenerateAccessToken") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{workstation=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:generateAccessToken", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "workstation", request.getWorkstation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearWorkstation().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GenerateAccessTokenResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + getWorkstationClusterCallable; + private final UnaryCallable + listWorkstationClustersCallable; + private final UnaryCallable + listWorkstationClustersPagedCallable; + private final UnaryCallable + createWorkstationClusterCallable; + private final OperationCallable< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationCallable; + private final UnaryCallable + updateWorkstationClusterCallable; + private final OperationCallable< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationCallable; + private final UnaryCallable + deleteWorkstationClusterCallable; + private final OperationCallable< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationCallable; + private final UnaryCallable + getWorkstationConfigCallable; + private final UnaryCallable + listWorkstationConfigsCallable; + private final UnaryCallable + listWorkstationConfigsPagedCallable; + private final UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigsCallable; + private final UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsPagedCallable; + private final UnaryCallable + createWorkstationConfigCallable; + private final OperationCallable< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationCallable; + private final UnaryCallable + updateWorkstationConfigCallable; + private final OperationCallable< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationCallable; + private final UnaryCallable + deleteWorkstationConfigCallable; + private final OperationCallable< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationCallable; + private final UnaryCallable getWorkstationCallable; + private final UnaryCallable + listWorkstationsCallable; + private final UnaryCallable + listWorkstationsPagedCallable; + private final UnaryCallable + listUsableWorkstationsCallable; + private final UnaryCallable + listUsableWorkstationsPagedCallable; + private final UnaryCallable createWorkstationCallable; + private final OperationCallable + createWorkstationOperationCallable; + private final UnaryCallable updateWorkstationCallable; + private final OperationCallable + updateWorkstationOperationCallable; + private final UnaryCallable deleteWorkstationCallable; + private final OperationCallable + deleteWorkstationOperationCallable; + private final UnaryCallable startWorkstationCallable; + private final OperationCallable + startWorkstationOperationCallable; + private final UnaryCallable stopWorkstationCallable; + private final OperationCallable + stopWorkstationOperationCallable; + private final UnaryCallable + generateAccessTokenCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonWorkstationsStub create(WorkstationsStubSettings settings) + throws IOException { + return new HttpJsonWorkstationsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonWorkstationsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonWorkstationsStub( + WorkstationsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonWorkstationsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonWorkstationsStub( + WorkstationsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonWorkstationsStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonWorkstationsStub(WorkstationsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonWorkstationsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonWorkstationsStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonWorkstationsStub( + WorkstationsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings + getWorkstationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkstationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkstationClustersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listWorkstationClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createWorkstationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkstationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateWorkstationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkstationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteWorkstationClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkstationClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getWorkstationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkstationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkstationConfigsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listWorkstationConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listUsableWorkstationConfigsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listUsableWorkstationConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createWorkstationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkstationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateWorkstationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkstationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteWorkstationConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkstationConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getWorkstationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getWorkstationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listWorkstationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listWorkstationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listUsableWorkstationsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listUsableWorkstationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createWorkstationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkstationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateWorkstationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateWorkstationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteWorkstationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteWorkstationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings startWorkstationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startWorkstationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings stopWorkstationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(stopWorkstationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + generateAccessTokenTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(generateAccessTokenMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getWorkstationClusterCallable = + callableFactory.createUnaryCallable( + getWorkstationClusterTransportSettings, + settings.getWorkstationClusterSettings(), + clientContext); + this.listWorkstationClustersCallable = + callableFactory.createUnaryCallable( + listWorkstationClustersTransportSettings, + settings.listWorkstationClustersSettings(), + clientContext); + this.listWorkstationClustersPagedCallable = + callableFactory.createPagedCallable( + listWorkstationClustersTransportSettings, + settings.listWorkstationClustersSettings(), + clientContext); + this.createWorkstationClusterCallable = + callableFactory.createUnaryCallable( + createWorkstationClusterTransportSettings, + settings.createWorkstationClusterSettings(), + clientContext); + this.createWorkstationClusterOperationCallable = + callableFactory.createOperationCallable( + createWorkstationClusterTransportSettings, + settings.createWorkstationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateWorkstationClusterCallable = + callableFactory.createUnaryCallable( + updateWorkstationClusterTransportSettings, + settings.updateWorkstationClusterSettings(), + clientContext); + this.updateWorkstationClusterOperationCallable = + callableFactory.createOperationCallable( + updateWorkstationClusterTransportSettings, + settings.updateWorkstationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteWorkstationClusterCallable = + callableFactory.createUnaryCallable( + deleteWorkstationClusterTransportSettings, + settings.deleteWorkstationClusterSettings(), + clientContext); + this.deleteWorkstationClusterOperationCallable = + callableFactory.createOperationCallable( + deleteWorkstationClusterTransportSettings, + settings.deleteWorkstationClusterOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getWorkstationConfigCallable = + callableFactory.createUnaryCallable( + getWorkstationConfigTransportSettings, + settings.getWorkstationConfigSettings(), + clientContext); + this.listWorkstationConfigsCallable = + callableFactory.createUnaryCallable( + listWorkstationConfigsTransportSettings, + settings.listWorkstationConfigsSettings(), + clientContext); + this.listWorkstationConfigsPagedCallable = + callableFactory.createPagedCallable( + listWorkstationConfigsTransportSettings, + settings.listWorkstationConfigsSettings(), + clientContext); + this.listUsableWorkstationConfigsCallable = + callableFactory.createUnaryCallable( + listUsableWorkstationConfigsTransportSettings, + settings.listUsableWorkstationConfigsSettings(), + clientContext); + this.listUsableWorkstationConfigsPagedCallable = + callableFactory.createPagedCallable( + listUsableWorkstationConfigsTransportSettings, + settings.listUsableWorkstationConfigsSettings(), + clientContext); + this.createWorkstationConfigCallable = + callableFactory.createUnaryCallable( + createWorkstationConfigTransportSettings, + settings.createWorkstationConfigSettings(), + clientContext); + this.createWorkstationConfigOperationCallable = + callableFactory.createOperationCallable( + createWorkstationConfigTransportSettings, + settings.createWorkstationConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateWorkstationConfigCallable = + callableFactory.createUnaryCallable( + updateWorkstationConfigTransportSettings, + settings.updateWorkstationConfigSettings(), + clientContext); + this.updateWorkstationConfigOperationCallable = + callableFactory.createOperationCallable( + updateWorkstationConfigTransportSettings, + settings.updateWorkstationConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteWorkstationConfigCallable = + callableFactory.createUnaryCallable( + deleteWorkstationConfigTransportSettings, + settings.deleteWorkstationConfigSettings(), + clientContext); + this.deleteWorkstationConfigOperationCallable = + callableFactory.createOperationCallable( + deleteWorkstationConfigTransportSettings, + settings.deleteWorkstationConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getWorkstationCallable = + callableFactory.createUnaryCallable( + getWorkstationTransportSettings, settings.getWorkstationSettings(), clientContext); + this.listWorkstationsCallable = + callableFactory.createUnaryCallable( + listWorkstationsTransportSettings, settings.listWorkstationsSettings(), clientContext); + this.listWorkstationsPagedCallable = + callableFactory.createPagedCallable( + listWorkstationsTransportSettings, settings.listWorkstationsSettings(), clientContext); + this.listUsableWorkstationsCallable = + callableFactory.createUnaryCallable( + listUsableWorkstationsTransportSettings, + settings.listUsableWorkstationsSettings(), + clientContext); + this.listUsableWorkstationsPagedCallable = + callableFactory.createPagedCallable( + listUsableWorkstationsTransportSettings, + settings.listUsableWorkstationsSettings(), + clientContext); + this.createWorkstationCallable = + callableFactory.createUnaryCallable( + createWorkstationTransportSettings, + settings.createWorkstationSettings(), + clientContext); + this.createWorkstationOperationCallable = + callableFactory.createOperationCallable( + createWorkstationTransportSettings, + settings.createWorkstationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateWorkstationCallable = + callableFactory.createUnaryCallable( + updateWorkstationTransportSettings, + settings.updateWorkstationSettings(), + clientContext); + this.updateWorkstationOperationCallable = + callableFactory.createOperationCallable( + updateWorkstationTransportSettings, + settings.updateWorkstationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteWorkstationCallable = + callableFactory.createUnaryCallable( + deleteWorkstationTransportSettings, + settings.deleteWorkstationSettings(), + clientContext); + this.deleteWorkstationOperationCallable = + callableFactory.createOperationCallable( + deleteWorkstationTransportSettings, + settings.deleteWorkstationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.startWorkstationCallable = + callableFactory.createUnaryCallable( + startWorkstationTransportSettings, settings.startWorkstationSettings(), clientContext); + this.startWorkstationOperationCallable = + callableFactory.createOperationCallable( + startWorkstationTransportSettings, + settings.startWorkstationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.stopWorkstationCallable = + callableFactory.createUnaryCallable( + stopWorkstationTransportSettings, settings.stopWorkstationSettings(), clientContext); + this.stopWorkstationOperationCallable = + callableFactory.createOperationCallable( + stopWorkstationTransportSettings, + settings.stopWorkstationOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.generateAccessTokenCallable = + callableFactory.createUnaryCallable( + generateAccessTokenTransportSettings, + settings.generateAccessTokenSettings(), + clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getWorkstationClusterMethodDescriptor); + methodDescriptors.add(listWorkstationClustersMethodDescriptor); + methodDescriptors.add(createWorkstationClusterMethodDescriptor); + methodDescriptors.add(updateWorkstationClusterMethodDescriptor); + methodDescriptors.add(deleteWorkstationClusterMethodDescriptor); + methodDescriptors.add(getWorkstationConfigMethodDescriptor); + methodDescriptors.add(listWorkstationConfigsMethodDescriptor); + methodDescriptors.add(listUsableWorkstationConfigsMethodDescriptor); + methodDescriptors.add(createWorkstationConfigMethodDescriptor); + methodDescriptors.add(updateWorkstationConfigMethodDescriptor); + methodDescriptors.add(deleteWorkstationConfigMethodDescriptor); + methodDescriptors.add(getWorkstationMethodDescriptor); + methodDescriptors.add(listWorkstationsMethodDescriptor); + methodDescriptors.add(listUsableWorkstationsMethodDescriptor); + methodDescriptors.add(createWorkstationMethodDescriptor); + methodDescriptors.add(updateWorkstationMethodDescriptor); + methodDescriptors.add(deleteWorkstationMethodDescriptor); + methodDescriptors.add(startWorkstationMethodDescriptor); + methodDescriptors.add(stopWorkstationMethodDescriptor); + methodDescriptors.add(generateAccessTokenMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + getWorkstationClusterCallable() { + return getWorkstationClusterCallable; + } + + @Override + public UnaryCallable + listWorkstationClustersCallable() { + return listWorkstationClustersCallable; + } + + @Override + public UnaryCallable + listWorkstationClustersPagedCallable() { + return listWorkstationClustersPagedCallable; + } + + @Override + public UnaryCallable + createWorkstationClusterCallable() { + return createWorkstationClusterCallable; + } + + @Override + public OperationCallable + createWorkstationClusterOperationCallable() { + return createWorkstationClusterOperationCallable; + } + + @Override + public UnaryCallable + updateWorkstationClusterCallable() { + return updateWorkstationClusterCallable; + } + + @Override + public OperationCallable + updateWorkstationClusterOperationCallable() { + return updateWorkstationClusterOperationCallable; + } + + @Override + public UnaryCallable + deleteWorkstationClusterCallable() { + return deleteWorkstationClusterCallable; + } + + @Override + public OperationCallable + deleteWorkstationClusterOperationCallable() { + return deleteWorkstationClusterOperationCallable; + } + + @Override + public UnaryCallable + getWorkstationConfigCallable() { + return getWorkstationConfigCallable; + } + + @Override + public UnaryCallable + listWorkstationConfigsCallable() { + return listWorkstationConfigsCallable; + } + + @Override + public UnaryCallable + listWorkstationConfigsPagedCallable() { + return listWorkstationConfigsPagedCallable; + } + + @Override + public UnaryCallable + listUsableWorkstationConfigsCallable() { + return listUsableWorkstationConfigsCallable; + } + + @Override + public UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsPagedCallable() { + return listUsableWorkstationConfigsPagedCallable; + } + + @Override + public UnaryCallable + createWorkstationConfigCallable() { + return createWorkstationConfigCallable; + } + + @Override + public OperationCallable + createWorkstationConfigOperationCallable() { + return createWorkstationConfigOperationCallable; + } + + @Override + public UnaryCallable + updateWorkstationConfigCallable() { + return updateWorkstationConfigCallable; + } + + @Override + public OperationCallable + updateWorkstationConfigOperationCallable() { + return updateWorkstationConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteWorkstationConfigCallable() { + return deleteWorkstationConfigCallable; + } + + @Override + public OperationCallable + deleteWorkstationConfigOperationCallable() { + return deleteWorkstationConfigOperationCallable; + } + + @Override + public UnaryCallable getWorkstationCallable() { + return getWorkstationCallable; + } + + @Override + public UnaryCallable + listWorkstationsCallable() { + return listWorkstationsCallable; + } + + @Override + public UnaryCallable + listWorkstationsPagedCallable() { + return listWorkstationsPagedCallable; + } + + @Override + public UnaryCallable + listUsableWorkstationsCallable() { + return listUsableWorkstationsCallable; + } + + @Override + public UnaryCallable + listUsableWorkstationsPagedCallable() { + return listUsableWorkstationsPagedCallable; + } + + @Override + public UnaryCallable createWorkstationCallable() { + return createWorkstationCallable; + } + + @Override + public OperationCallable + createWorkstationOperationCallable() { + return createWorkstationOperationCallable; + } + + @Override + public UnaryCallable updateWorkstationCallable() { + return updateWorkstationCallable; + } + + @Override + public OperationCallable + updateWorkstationOperationCallable() { + return updateWorkstationOperationCallable; + } + + @Override + public UnaryCallable deleteWorkstationCallable() { + return deleteWorkstationCallable; + } + + @Override + public OperationCallable + deleteWorkstationOperationCallable() { + return deleteWorkstationOperationCallable; + } + + @Override + public UnaryCallable startWorkstationCallable() { + return startWorkstationCallable; + } + + @Override + public OperationCallable + startWorkstationOperationCallable() { + return startWorkstationOperationCallable; + } + + @Override + public UnaryCallable stopWorkstationCallable() { + return stopWorkstationCallable; + } + + @Override + public OperationCallable + stopWorkstationOperationCallable() { + return stopWorkstationOperationCallable; + } + + @Override + public UnaryCallable + generateAccessTokenCallable() { + return generateAccessTokenCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java new file mode 100644 index 000000000000..c0ba9b3f1662 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java @@ -0,0 +1,288 @@ +/* + * 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.workstations.v1.stub; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.GetWorkstationClusterRequest; +import com.google.cloud.workstations.v1.GetWorkstationConfigRequest; +import com.google.cloud.workstations.v1.GetWorkstationRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationsResponse; +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.ListWorkstationClustersResponse; +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.ListWorkstationsResponse; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Workstations service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class WorkstationsStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + getWorkstationClusterCallable() { + throw new UnsupportedOperationException("Not implemented: getWorkstationClusterCallable()"); + } + + public UnaryCallable + listWorkstationClustersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listWorkstationClustersPagedCallable()"); + } + + public UnaryCallable + listWorkstationClustersCallable() { + throw new UnsupportedOperationException("Not implemented: listWorkstationClustersCallable()"); + } + + public OperationCallable + createWorkstationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkstationClusterOperationCallable()"); + } + + public UnaryCallable + createWorkstationClusterCallable() { + throw new UnsupportedOperationException("Not implemented: createWorkstationClusterCallable()"); + } + + public OperationCallable + updateWorkstationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateWorkstationClusterOperationCallable()"); + } + + public UnaryCallable + updateWorkstationClusterCallable() { + throw new UnsupportedOperationException("Not implemented: updateWorkstationClusterCallable()"); + } + + public OperationCallable + deleteWorkstationClusterOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteWorkstationClusterOperationCallable()"); + } + + public UnaryCallable + deleteWorkstationClusterCallable() { + throw new UnsupportedOperationException("Not implemented: deleteWorkstationClusterCallable()"); + } + + public UnaryCallable + getWorkstationConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getWorkstationConfigCallable()"); + } + + public UnaryCallable + listWorkstationConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listWorkstationConfigsPagedCallable()"); + } + + public UnaryCallable + listWorkstationConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listWorkstationConfigsCallable()"); + } + + public UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listUsableWorkstationConfigsPagedCallable()"); + } + + public UnaryCallable + listUsableWorkstationConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listUsableWorkstationConfigsCallable()"); + } + + public OperationCallable + createWorkstationConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkstationConfigOperationCallable()"); + } + + public UnaryCallable + createWorkstationConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createWorkstationConfigCallable()"); + } + + public OperationCallable + updateWorkstationConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateWorkstationConfigOperationCallable()"); + } + + public UnaryCallable + updateWorkstationConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateWorkstationConfigCallable()"); + } + + public OperationCallable + deleteWorkstationConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteWorkstationConfigOperationCallable()"); + } + + public UnaryCallable + deleteWorkstationConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteWorkstationConfigCallable()"); + } + + public UnaryCallable getWorkstationCallable() { + throw new UnsupportedOperationException("Not implemented: getWorkstationCallable()"); + } + + public UnaryCallable + listWorkstationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listWorkstationsPagedCallable()"); + } + + public UnaryCallable + listWorkstationsCallable() { + throw new UnsupportedOperationException("Not implemented: listWorkstationsCallable()"); + } + + public UnaryCallable + listUsableWorkstationsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listUsableWorkstationsPagedCallable()"); + } + + public UnaryCallable + listUsableWorkstationsCallable() { + throw new UnsupportedOperationException("Not implemented: listUsableWorkstationsCallable()"); + } + + public OperationCallable + createWorkstationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkstationOperationCallable()"); + } + + public UnaryCallable createWorkstationCallable() { + throw new UnsupportedOperationException("Not implemented: createWorkstationCallable()"); + } + + public OperationCallable + updateWorkstationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateWorkstationOperationCallable()"); + } + + public UnaryCallable updateWorkstationCallable() { + throw new UnsupportedOperationException("Not implemented: updateWorkstationCallable()"); + } + + public OperationCallable + deleteWorkstationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteWorkstationOperationCallable()"); + } + + public UnaryCallable deleteWorkstationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteWorkstationCallable()"); + } + + public OperationCallable + startWorkstationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: startWorkstationOperationCallable()"); + } + + public UnaryCallable startWorkstationCallable() { + throw new UnsupportedOperationException("Not implemented: startWorkstationCallable()"); + } + + public OperationCallable + stopWorkstationOperationCallable() { + throw new UnsupportedOperationException("Not implemented: stopWorkstationOperationCallable()"); + } + + public UnaryCallable stopWorkstationCallable() { + throw new UnsupportedOperationException("Not implemented: stopWorkstationCallable()"); + } + + public UnaryCallable + generateAccessTokenCallable() { + throw new UnsupportedOperationException("Not implemented: generateAccessTokenCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java new file mode 100644 index 000000000000..41bebc2ace19 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java @@ -0,0 +1,1888 @@ +/* + * 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.workstations.v1.stub; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.GetWorkstationClusterRequest; +import com.google.cloud.workstations.v1.GetWorkstationConfigRequest; +import com.google.cloud.workstations.v1.GetWorkstationRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationsResponse; +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.ListWorkstationClustersResponse; +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.ListWorkstationsResponse; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link WorkstationsStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (workstations.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getWorkstationCluster to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * WorkstationsStubSettings.Builder workstationsSettingsBuilder =
+ *     WorkstationsStubSettings.newBuilder();
+ * workstationsSettingsBuilder
+ *     .getWorkstationClusterSettings()
+ *     .setRetrySettings(
+ *         workstationsSettingsBuilder
+ *             .getWorkstationClusterSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * WorkstationsStubSettings workstationsSettings = workstationsSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class WorkstationsStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + getWorkstationClusterSettings; + private final PagedCallSettings< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + listWorkstationClustersSettings; + private final UnaryCallSettings + createWorkstationClusterSettings; + private final OperationCallSettings< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationSettings; + private final UnaryCallSettings + updateWorkstationClusterSettings; + private final OperationCallSettings< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationSettings; + private final UnaryCallSettings + deleteWorkstationClusterSettings; + private final OperationCallSettings< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationSettings; + private final UnaryCallSettings + getWorkstationConfigSettings; + private final PagedCallSettings< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + listWorkstationConfigsSettings; + private final PagedCallSettings< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsSettings; + private final UnaryCallSettings + createWorkstationConfigSettings; + private final OperationCallSettings< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationSettings; + private final UnaryCallSettings + updateWorkstationConfigSettings; + private final OperationCallSettings< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationSettings; + private final UnaryCallSettings + deleteWorkstationConfigSettings; + private final OperationCallSettings< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationSettings; + private final UnaryCallSettings getWorkstationSettings; + private final PagedCallSettings< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + listWorkstationsSettings; + private final PagedCallSettings< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + listUsableWorkstationsSettings; + private final UnaryCallSettings createWorkstationSettings; + private final OperationCallSettings + createWorkstationOperationSettings; + private final UnaryCallSettings updateWorkstationSettings; + private final OperationCallSettings + updateWorkstationOperationSettings; + private final UnaryCallSettings deleteWorkstationSettings; + private final OperationCallSettings + deleteWorkstationOperationSettings; + private final UnaryCallSettings startWorkstationSettings; + private final OperationCallSettings + startWorkstationOperationSettings; + private final UnaryCallSettings stopWorkstationSettings; + private final OperationCallSettings + stopWorkstationOperationSettings; + private final UnaryCallSettings + generateAccessTokenSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListWorkstationClustersRequest, ListWorkstationClustersResponse, WorkstationCluster> + LIST_WORKSTATION_CLUSTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + WorkstationCluster>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWorkstationClustersRequest injectToken( + ListWorkstationClustersRequest payload, String token) { + return ListWorkstationClustersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWorkstationClustersRequest injectPageSize( + ListWorkstationClustersRequest payload, int pageSize) { + return ListWorkstationClustersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListWorkstationClustersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWorkstationClustersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListWorkstationClustersResponse payload) { + return payload.getWorkstationClustersList() == null + ? ImmutableList.of() + : payload.getWorkstationClustersList(); + } + }; + + private static final PagedListDescriptor< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig> + LIST_WORKSTATION_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListWorkstationConfigsRequest, ListWorkstationConfigsResponse, WorkstationConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWorkstationConfigsRequest injectToken( + ListWorkstationConfigsRequest payload, String token) { + return ListWorkstationConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWorkstationConfigsRequest injectPageSize( + ListWorkstationConfigsRequest payload, int pageSize) { + return ListWorkstationConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListWorkstationConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWorkstationConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListWorkstationConfigsResponse payload) { + return payload.getWorkstationConfigsList() == null + ? ImmutableList.of() + : payload.getWorkstationConfigsList(); + } + }; + + private static final PagedListDescriptor< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig> + LIST_USABLE_WORKSTATION_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableWorkstationConfigsRequest injectToken( + ListUsableWorkstationConfigsRequest payload, String token) { + return ListUsableWorkstationConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListUsableWorkstationConfigsRequest injectPageSize( + ListUsableWorkstationConfigsRequest payload, int pageSize) { + return ListUsableWorkstationConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListUsableWorkstationConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUsableWorkstationConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListUsableWorkstationConfigsResponse payload) { + return payload.getWorkstationConfigsList() == null + ? ImmutableList.of() + : payload.getWorkstationConfigsList(); + } + }; + + private static final PagedListDescriptor< + ListWorkstationsRequest, ListWorkstationsResponse, Workstation> + LIST_WORKSTATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListWorkstationsRequest, ListWorkstationsResponse, Workstation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListWorkstationsRequest injectToken( + ListWorkstationsRequest payload, String token) { + return ListWorkstationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListWorkstationsRequest injectPageSize( + ListWorkstationsRequest payload, int pageSize) { + return ListWorkstationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListWorkstationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListWorkstationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListWorkstationsResponse payload) { + return payload.getWorkstationsList() == null + ? ImmutableList.of() + : payload.getWorkstationsList(); + } + }; + + private static final PagedListDescriptor< + ListUsableWorkstationsRequest, ListUsableWorkstationsResponse, Workstation> + LIST_USABLE_WORKSTATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableWorkstationsRequest, ListUsableWorkstationsResponse, Workstation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableWorkstationsRequest injectToken( + ListUsableWorkstationsRequest payload, String token) { + return ListUsableWorkstationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUsableWorkstationsRequest injectPageSize( + ListUsableWorkstationsRequest payload, int pageSize) { + return ListUsableWorkstationsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListUsableWorkstationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUsableWorkstationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListUsableWorkstationsResponse payload) { + return payload.getWorkstationsList() == null + ? ImmutableList.of() + : payload.getWorkstationsList(); + } + }; + + private static final PagedListResponseFactory< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + LIST_WORKSTATION_CLUSTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListWorkstationClustersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + WorkstationCluster> + pageContext = + PageContext.create( + callable, LIST_WORKSTATION_CLUSTERS_PAGE_STR_DESC, request, context); + return ListWorkstationClustersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + LIST_WORKSTATION_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListWorkstationConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + WorkstationConfig> + pageContext = + PageContext.create( + callable, LIST_WORKSTATION_CONFIGS_PAGE_STR_DESC, request, context); + return ListWorkstationConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + LIST_USABLE_WORKSTATION_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListUsableWorkstationConfigsRequest, ListUsableWorkstationConfigsResponse> + callable, + ListUsableWorkstationConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + WorkstationConfig> + pageContext = + PageContext.create( + callable, + LIST_USABLE_WORKSTATION_CONFIGS_PAGE_STR_DESC, + request, + context); + return ListUsableWorkstationConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + LIST_WORKSTATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListWorkstationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_WORKSTATIONS_PAGE_STR_DESC, request, context); + return ListWorkstationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + LIST_USABLE_WORKSTATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListUsableWorkstationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListUsableWorkstationsRequest, ListUsableWorkstationsResponse, Workstation> + pageContext = + PageContext.create( + callable, LIST_USABLE_WORKSTATIONS_PAGE_STR_DESC, request, context); + return ListUsableWorkstationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getWorkstationCluster. */ + public UnaryCallSettings + getWorkstationClusterSettings() { + return getWorkstationClusterSettings; + } + + /** Returns the object with the settings used for calls to listWorkstationClusters. */ + public PagedCallSettings< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + listWorkstationClustersSettings() { + return listWorkstationClustersSettings; + } + + /** Returns the object with the settings used for calls to createWorkstationCluster. */ + public UnaryCallSettings + createWorkstationClusterSettings() { + return createWorkstationClusterSettings; + } + + /** Returns the object with the settings used for calls to createWorkstationCluster. */ + public OperationCallSettings< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationSettings() { + return createWorkstationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to updateWorkstationCluster. */ + public UnaryCallSettings + updateWorkstationClusterSettings() { + return updateWorkstationClusterSettings; + } + + /** Returns the object with the settings used for calls to updateWorkstationCluster. */ + public OperationCallSettings< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationSettings() { + return updateWorkstationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkstationCluster. */ + public UnaryCallSettings + deleteWorkstationClusterSettings() { + return deleteWorkstationClusterSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkstationCluster. */ + public OperationCallSettings< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationSettings() { + return deleteWorkstationClusterOperationSettings; + } + + /** Returns the object with the settings used for calls to getWorkstationConfig. */ + public UnaryCallSettings + getWorkstationConfigSettings() { + return getWorkstationConfigSettings; + } + + /** Returns the object with the settings used for calls to listWorkstationConfigs. */ + public PagedCallSettings< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + listWorkstationConfigsSettings() { + return listWorkstationConfigsSettings; + } + + /** Returns the object with the settings used for calls to listUsableWorkstationConfigs. */ + public PagedCallSettings< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsSettings() { + return listUsableWorkstationConfigsSettings; + } + + /** Returns the object with the settings used for calls to createWorkstationConfig. */ + public UnaryCallSettings + createWorkstationConfigSettings() { + return createWorkstationConfigSettings; + } + + /** Returns the object with the settings used for calls to createWorkstationConfig. */ + public OperationCallSettings + createWorkstationConfigOperationSettings() { + return createWorkstationConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to updateWorkstationConfig. */ + public UnaryCallSettings + updateWorkstationConfigSettings() { + return updateWorkstationConfigSettings; + } + + /** Returns the object with the settings used for calls to updateWorkstationConfig. */ + public OperationCallSettings + updateWorkstationConfigOperationSettings() { + return updateWorkstationConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkstationConfig. */ + public UnaryCallSettings + deleteWorkstationConfigSettings() { + return deleteWorkstationConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkstationConfig. */ + public OperationCallSettings + deleteWorkstationConfigOperationSettings() { + return deleteWorkstationConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to getWorkstation. */ + public UnaryCallSettings getWorkstationSettings() { + return getWorkstationSettings; + } + + /** Returns the object with the settings used for calls to listWorkstations. */ + public PagedCallSettings< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + listWorkstationsSettings() { + return listWorkstationsSettings; + } + + /** Returns the object with the settings used for calls to listUsableWorkstations. */ + public PagedCallSettings< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + listUsableWorkstationsSettings() { + return listUsableWorkstationsSettings; + } + + /** Returns the object with the settings used for calls to createWorkstation. */ + public UnaryCallSettings createWorkstationSettings() { + return createWorkstationSettings; + } + + /** Returns the object with the settings used for calls to createWorkstation. */ + public OperationCallSettings + createWorkstationOperationSettings() { + return createWorkstationOperationSettings; + } + + /** Returns the object with the settings used for calls to updateWorkstation. */ + public UnaryCallSettings updateWorkstationSettings() { + return updateWorkstationSettings; + } + + /** Returns the object with the settings used for calls to updateWorkstation. */ + public OperationCallSettings + updateWorkstationOperationSettings() { + return updateWorkstationOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkstation. */ + public UnaryCallSettings deleteWorkstationSettings() { + return deleteWorkstationSettings; + } + + /** Returns the object with the settings used for calls to deleteWorkstation. */ + public OperationCallSettings + deleteWorkstationOperationSettings() { + return deleteWorkstationOperationSettings; + } + + /** Returns the object with the settings used for calls to startWorkstation. */ + public UnaryCallSettings startWorkstationSettings() { + return startWorkstationSettings; + } + + /** Returns the object with the settings used for calls to startWorkstation. */ + public OperationCallSettings + startWorkstationOperationSettings() { + return startWorkstationOperationSettings; + } + + /** Returns the object with the settings used for calls to stopWorkstation. */ + public UnaryCallSettings stopWorkstationSettings() { + return stopWorkstationSettings; + } + + /** Returns the object with the settings used for calls to stopWorkstation. */ + public OperationCallSettings + stopWorkstationOperationSettings() { + return stopWorkstationOperationSettings; + } + + /** Returns the object with the settings used for calls to generateAccessToken. */ + public UnaryCallSettings + generateAccessTokenSettings() { + return generateAccessTokenSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public WorkstationsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcWorkstationsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonWorkstationsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "workstations.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "workstations.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WorkstationsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(WorkstationsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return WorkstationsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected WorkstationsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getWorkstationClusterSettings = settingsBuilder.getWorkstationClusterSettings().build(); + listWorkstationClustersSettings = settingsBuilder.listWorkstationClustersSettings().build(); + createWorkstationClusterSettings = settingsBuilder.createWorkstationClusterSettings().build(); + createWorkstationClusterOperationSettings = + settingsBuilder.createWorkstationClusterOperationSettings().build(); + updateWorkstationClusterSettings = settingsBuilder.updateWorkstationClusterSettings().build(); + updateWorkstationClusterOperationSettings = + settingsBuilder.updateWorkstationClusterOperationSettings().build(); + deleteWorkstationClusterSettings = settingsBuilder.deleteWorkstationClusterSettings().build(); + deleteWorkstationClusterOperationSettings = + settingsBuilder.deleteWorkstationClusterOperationSettings().build(); + getWorkstationConfigSettings = settingsBuilder.getWorkstationConfigSettings().build(); + listWorkstationConfigsSettings = settingsBuilder.listWorkstationConfigsSettings().build(); + listUsableWorkstationConfigsSettings = + settingsBuilder.listUsableWorkstationConfigsSettings().build(); + createWorkstationConfigSettings = settingsBuilder.createWorkstationConfigSettings().build(); + createWorkstationConfigOperationSettings = + settingsBuilder.createWorkstationConfigOperationSettings().build(); + updateWorkstationConfigSettings = settingsBuilder.updateWorkstationConfigSettings().build(); + updateWorkstationConfigOperationSettings = + settingsBuilder.updateWorkstationConfigOperationSettings().build(); + deleteWorkstationConfigSettings = settingsBuilder.deleteWorkstationConfigSettings().build(); + deleteWorkstationConfigOperationSettings = + settingsBuilder.deleteWorkstationConfigOperationSettings().build(); + getWorkstationSettings = settingsBuilder.getWorkstationSettings().build(); + listWorkstationsSettings = settingsBuilder.listWorkstationsSettings().build(); + listUsableWorkstationsSettings = settingsBuilder.listUsableWorkstationsSettings().build(); + createWorkstationSettings = settingsBuilder.createWorkstationSettings().build(); + createWorkstationOperationSettings = + settingsBuilder.createWorkstationOperationSettings().build(); + updateWorkstationSettings = settingsBuilder.updateWorkstationSettings().build(); + updateWorkstationOperationSettings = + settingsBuilder.updateWorkstationOperationSettings().build(); + deleteWorkstationSettings = settingsBuilder.deleteWorkstationSettings().build(); + deleteWorkstationOperationSettings = + settingsBuilder.deleteWorkstationOperationSettings().build(); + startWorkstationSettings = settingsBuilder.startWorkstationSettings().build(); + startWorkstationOperationSettings = settingsBuilder.startWorkstationOperationSettings().build(); + stopWorkstationSettings = settingsBuilder.stopWorkstationSettings().build(); + stopWorkstationOperationSettings = settingsBuilder.stopWorkstationOperationSettings().build(); + generateAccessTokenSettings = settingsBuilder.generateAccessTokenSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + /** Builder for WorkstationsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + getWorkstationClusterSettings; + private final PagedCallSettings.Builder< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + listWorkstationClustersSettings; + private final UnaryCallSettings.Builder + createWorkstationClusterSettings; + private final OperationCallSettings.Builder< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationSettings; + private final UnaryCallSettings.Builder + updateWorkstationClusterSettings; + private final OperationCallSettings.Builder< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationSettings; + private final UnaryCallSettings.Builder + deleteWorkstationClusterSettings; + private final OperationCallSettings.Builder< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationSettings; + private final UnaryCallSettings.Builder + getWorkstationConfigSettings; + private final PagedCallSettings.Builder< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + listWorkstationConfigsSettings; + private final PagedCallSettings.Builder< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsSettings; + private final UnaryCallSettings.Builder + createWorkstationConfigSettings; + private final OperationCallSettings.Builder< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationSettings; + private final UnaryCallSettings.Builder + updateWorkstationConfigSettings; + private final OperationCallSettings.Builder< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteWorkstationConfigSettings; + private final OperationCallSettings.Builder< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationSettings; + private final UnaryCallSettings.Builder + getWorkstationSettings; + private final PagedCallSettings.Builder< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + listWorkstationsSettings; + private final PagedCallSettings.Builder< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + listUsableWorkstationsSettings; + private final UnaryCallSettings.Builder + createWorkstationSettings; + private final OperationCallSettings.Builder< + CreateWorkstationRequest, Workstation, OperationMetadata> + createWorkstationOperationSettings; + private final UnaryCallSettings.Builder + updateWorkstationSettings; + private final OperationCallSettings.Builder< + UpdateWorkstationRequest, Workstation, OperationMetadata> + updateWorkstationOperationSettings; + private final UnaryCallSettings.Builder + deleteWorkstationSettings; + private final OperationCallSettings.Builder< + DeleteWorkstationRequest, Workstation, OperationMetadata> + deleteWorkstationOperationSettings; + private final UnaryCallSettings.Builder + startWorkstationSettings; + private final OperationCallSettings.Builder< + StartWorkstationRequest, Workstation, OperationMetadata> + startWorkstationOperationSettings; + private final UnaryCallSettings.Builder + stopWorkstationSettings; + private final OperationCallSettings.Builder< + StopWorkstationRequest, Workstation, OperationMetadata> + stopWorkstationOperationSettings; + private final UnaryCallSettings.Builder + generateAccessTokenSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getWorkstationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listWorkstationClustersSettings = + PagedCallSettings.newBuilder(LIST_WORKSTATION_CLUSTERS_PAGE_STR_FACT); + createWorkstationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkstationClusterOperationSettings = OperationCallSettings.newBuilder(); + updateWorkstationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateWorkstationClusterOperationSettings = OperationCallSettings.newBuilder(); + deleteWorkstationClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteWorkstationClusterOperationSettings = OperationCallSettings.newBuilder(); + getWorkstationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listWorkstationConfigsSettings = + PagedCallSettings.newBuilder(LIST_WORKSTATION_CONFIGS_PAGE_STR_FACT); + listUsableWorkstationConfigsSettings = + PagedCallSettings.newBuilder(LIST_USABLE_WORKSTATION_CONFIGS_PAGE_STR_FACT); + createWorkstationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkstationConfigOperationSettings = OperationCallSettings.newBuilder(); + updateWorkstationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateWorkstationConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteWorkstationConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteWorkstationConfigOperationSettings = OperationCallSettings.newBuilder(); + getWorkstationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listWorkstationsSettings = PagedCallSettings.newBuilder(LIST_WORKSTATIONS_PAGE_STR_FACT); + listUsableWorkstationsSettings = + PagedCallSettings.newBuilder(LIST_USABLE_WORKSTATIONS_PAGE_STR_FACT); + createWorkstationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkstationOperationSettings = OperationCallSettings.newBuilder(); + updateWorkstationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateWorkstationOperationSettings = OperationCallSettings.newBuilder(); + deleteWorkstationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteWorkstationOperationSettings = OperationCallSettings.newBuilder(); + startWorkstationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + startWorkstationOperationSettings = OperationCallSettings.newBuilder(); + stopWorkstationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + stopWorkstationOperationSettings = OperationCallSettings.newBuilder(); + generateAccessTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getWorkstationClusterSettings, + listWorkstationClustersSettings, + createWorkstationClusterSettings, + updateWorkstationClusterSettings, + deleteWorkstationClusterSettings, + getWorkstationConfigSettings, + listWorkstationConfigsSettings, + listUsableWorkstationConfigsSettings, + createWorkstationConfigSettings, + updateWorkstationConfigSettings, + deleteWorkstationConfigSettings, + getWorkstationSettings, + listWorkstationsSettings, + listUsableWorkstationsSettings, + createWorkstationSettings, + updateWorkstationSettings, + deleteWorkstationSettings, + startWorkstationSettings, + stopWorkstationSettings, + generateAccessTokenSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(WorkstationsStubSettings settings) { + super(settings); + + getWorkstationClusterSettings = settings.getWorkstationClusterSettings.toBuilder(); + listWorkstationClustersSettings = settings.listWorkstationClustersSettings.toBuilder(); + createWorkstationClusterSettings = settings.createWorkstationClusterSettings.toBuilder(); + createWorkstationClusterOperationSettings = + settings.createWorkstationClusterOperationSettings.toBuilder(); + updateWorkstationClusterSettings = settings.updateWorkstationClusterSettings.toBuilder(); + updateWorkstationClusterOperationSettings = + settings.updateWorkstationClusterOperationSettings.toBuilder(); + deleteWorkstationClusterSettings = settings.deleteWorkstationClusterSettings.toBuilder(); + deleteWorkstationClusterOperationSettings = + settings.deleteWorkstationClusterOperationSettings.toBuilder(); + getWorkstationConfigSettings = settings.getWorkstationConfigSettings.toBuilder(); + listWorkstationConfigsSettings = settings.listWorkstationConfigsSettings.toBuilder(); + listUsableWorkstationConfigsSettings = + settings.listUsableWorkstationConfigsSettings.toBuilder(); + createWorkstationConfigSettings = settings.createWorkstationConfigSettings.toBuilder(); + createWorkstationConfigOperationSettings = + settings.createWorkstationConfigOperationSettings.toBuilder(); + updateWorkstationConfigSettings = settings.updateWorkstationConfigSettings.toBuilder(); + updateWorkstationConfigOperationSettings = + settings.updateWorkstationConfigOperationSettings.toBuilder(); + deleteWorkstationConfigSettings = settings.deleteWorkstationConfigSettings.toBuilder(); + deleteWorkstationConfigOperationSettings = + settings.deleteWorkstationConfigOperationSettings.toBuilder(); + getWorkstationSettings = settings.getWorkstationSettings.toBuilder(); + listWorkstationsSettings = settings.listWorkstationsSettings.toBuilder(); + listUsableWorkstationsSettings = settings.listUsableWorkstationsSettings.toBuilder(); + createWorkstationSettings = settings.createWorkstationSettings.toBuilder(); + createWorkstationOperationSettings = settings.createWorkstationOperationSettings.toBuilder(); + updateWorkstationSettings = settings.updateWorkstationSettings.toBuilder(); + updateWorkstationOperationSettings = settings.updateWorkstationOperationSettings.toBuilder(); + deleteWorkstationSettings = settings.deleteWorkstationSettings.toBuilder(); + deleteWorkstationOperationSettings = settings.deleteWorkstationOperationSettings.toBuilder(); + startWorkstationSettings = settings.startWorkstationSettings.toBuilder(); + startWorkstationOperationSettings = settings.startWorkstationOperationSettings.toBuilder(); + stopWorkstationSettings = settings.stopWorkstationSettings.toBuilder(); + stopWorkstationOperationSettings = settings.stopWorkstationOperationSettings.toBuilder(); + generateAccessTokenSettings = settings.generateAccessTokenSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getWorkstationClusterSettings, + listWorkstationClustersSettings, + createWorkstationClusterSettings, + updateWorkstationClusterSettings, + deleteWorkstationClusterSettings, + getWorkstationConfigSettings, + listWorkstationConfigsSettings, + listUsableWorkstationConfigsSettings, + createWorkstationConfigSettings, + updateWorkstationConfigSettings, + deleteWorkstationConfigSettings, + getWorkstationSettings, + listWorkstationsSettings, + listUsableWorkstationsSettings, + createWorkstationSettings, + updateWorkstationSettings, + deleteWorkstationSettings, + startWorkstationSettings, + stopWorkstationSettings, + generateAccessTokenSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getWorkstationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listWorkstationClustersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createWorkstationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateWorkstationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteWorkstationClusterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getWorkstationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listWorkstationConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listUsableWorkstationConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createWorkstationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateWorkstationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteWorkstationConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getWorkstationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listWorkstationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listUsableWorkstationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createWorkstationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateWorkstationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteWorkstationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .startWorkstationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .stopWorkstationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .generateAccessTokenSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createWorkstationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(WorkstationCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateWorkstationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(WorkstationCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteWorkstationClusterOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(WorkstationCluster.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createWorkstationConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(WorkstationConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateWorkstationConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(WorkstationConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteWorkstationConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(WorkstationConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createWorkstationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workstation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateWorkstationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workstation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteWorkstationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workstation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .startWorkstationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workstation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .stopWorkstationOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workstation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getWorkstationCluster. */ + public UnaryCallSettings.Builder + getWorkstationClusterSettings() { + return getWorkstationClusterSettings; + } + + /** Returns the builder for the settings used for calls to listWorkstationClusters. */ + public PagedCallSettings.Builder< + ListWorkstationClustersRequest, + ListWorkstationClustersResponse, + ListWorkstationClustersPagedResponse> + listWorkstationClustersSettings() { + return listWorkstationClustersSettings; + } + + /** Returns the builder for the settings used for calls to createWorkstationCluster. */ + public UnaryCallSettings.Builder + createWorkstationClusterSettings() { + return createWorkstationClusterSettings; + } + + /** Returns the builder for the settings used for calls to createWorkstationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + createWorkstationClusterOperationSettings() { + return createWorkstationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkstationCluster. */ + public UnaryCallSettings.Builder + updateWorkstationClusterSettings() { + return updateWorkstationClusterSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkstationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + updateWorkstationClusterOperationSettings() { + return updateWorkstationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkstationCluster. */ + public UnaryCallSettings.Builder + deleteWorkstationClusterSettings() { + return deleteWorkstationClusterSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkstationCluster. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteWorkstationClusterRequest, WorkstationCluster, OperationMetadata> + deleteWorkstationClusterOperationSettings() { + return deleteWorkstationClusterOperationSettings; + } + + /** Returns the builder for the settings used for calls to getWorkstationConfig. */ + public UnaryCallSettings.Builder + getWorkstationConfigSettings() { + return getWorkstationConfigSettings; + } + + /** Returns the builder for the settings used for calls to listWorkstationConfigs. */ + public PagedCallSettings.Builder< + ListWorkstationConfigsRequest, + ListWorkstationConfigsResponse, + ListWorkstationConfigsPagedResponse> + listWorkstationConfigsSettings() { + return listWorkstationConfigsSettings; + } + + /** Returns the builder for the settings used for calls to listUsableWorkstationConfigs. */ + public PagedCallSettings.Builder< + ListUsableWorkstationConfigsRequest, + ListUsableWorkstationConfigsResponse, + ListUsableWorkstationConfigsPagedResponse> + listUsableWorkstationConfigsSettings() { + return listUsableWorkstationConfigsSettings; + } + + /** Returns the builder for the settings used for calls to createWorkstationConfig. */ + public UnaryCallSettings.Builder + createWorkstationConfigSettings() { + return createWorkstationConfigSettings; + } + + /** Returns the builder for the settings used for calls to createWorkstationConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + createWorkstationConfigOperationSettings() { + return createWorkstationConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkstationConfig. */ + public UnaryCallSettings.Builder + updateWorkstationConfigSettings() { + return updateWorkstationConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkstationConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + updateWorkstationConfigOperationSettings() { + return updateWorkstationConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkstationConfig. */ + public UnaryCallSettings.Builder + deleteWorkstationConfigSettings() { + return deleteWorkstationConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkstationConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteWorkstationConfigRequest, WorkstationConfig, OperationMetadata> + deleteWorkstationConfigOperationSettings() { + return deleteWorkstationConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to getWorkstation. */ + public UnaryCallSettings.Builder getWorkstationSettings() { + return getWorkstationSettings; + } + + /** Returns the builder for the settings used for calls to listWorkstations. */ + public PagedCallSettings.Builder< + ListWorkstationsRequest, ListWorkstationsResponse, ListWorkstationsPagedResponse> + listWorkstationsSettings() { + return listWorkstationsSettings; + } + + /** Returns the builder for the settings used for calls to listUsableWorkstations. */ + public PagedCallSettings.Builder< + ListUsableWorkstationsRequest, + ListUsableWorkstationsResponse, + ListUsableWorkstationsPagedResponse> + listUsableWorkstationsSettings() { + return listUsableWorkstationsSettings; + } + + /** Returns the builder for the settings used for calls to createWorkstation. */ + public UnaryCallSettings.Builder + createWorkstationSettings() { + return createWorkstationSettings; + } + + /** Returns the builder for the settings used for calls to createWorkstation. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createWorkstationOperationSettings() { + return createWorkstationOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkstation. */ + public UnaryCallSettings.Builder + updateWorkstationSettings() { + return updateWorkstationSettings; + } + + /** Returns the builder for the settings used for calls to updateWorkstation. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateWorkstationOperationSettings() { + return updateWorkstationOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkstation. */ + public UnaryCallSettings.Builder + deleteWorkstationSettings() { + return deleteWorkstationSettings; + } + + /** Returns the builder for the settings used for calls to deleteWorkstation. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteWorkstationOperationSettings() { + return deleteWorkstationOperationSettings; + } + + /** Returns the builder for the settings used for calls to startWorkstation. */ + public UnaryCallSettings.Builder + startWorkstationSettings() { + return startWorkstationSettings; + } + + /** Returns the builder for the settings used for calls to startWorkstation. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + startWorkstationOperationSettings() { + return startWorkstationOperationSettings; + } + + /** Returns the builder for the settings used for calls to stopWorkstation. */ + public UnaryCallSettings.Builder stopWorkstationSettings() { + return stopWorkstationSettings; + } + + /** Returns the builder for the settings used for calls to stopWorkstation. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + stopWorkstationOperationSettings() { + return stopWorkstationOperationSettings; + } + + /** Returns the builder for the settings used for calls to generateAccessToken. */ + public UnaryCallSettings.Builder + generateAccessTokenSettings() { + return generateAccessTokenSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public WorkstationsStubSettings build() throws IOException { + return new WorkstationsStubSettings(this); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java new file mode 100644 index 000000000000..de2e01745d8c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java new file mode 100644 index 000000000000..d13efab681e1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext(((TestIamPermissionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java new file mode 100644 index 000000000000..a62b1fbabc27 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..4f418256bef3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java new file mode 100644 index 000000000000..2cc2423b92a6 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockWorkstations implements MockGrpcService { + private final MockWorkstationsImpl serviceImpl; + + public MockWorkstations() { + serviceImpl = new MockWorkstationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java new file mode 100644 index 000000000000..d9861a9f8c38 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java @@ -0,0 +1,486 @@ +/* + * 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.workstations.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.workstations.v1.WorkstationsGrpc.WorkstationsImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockWorkstationsImpl extends WorkstationsImplBase { + private List requests; + private Queue responses; + + public MockWorkstationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getWorkstationCluster( + GetWorkstationClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WorkstationCluster) { + requests.add(request); + responseObserver.onNext(((WorkstationCluster) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkstationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WorkstationCluster.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listWorkstationClusters( + ListWorkstationClustersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListWorkstationClustersResponse) { + requests.add(request); + responseObserver.onNext(((ListWorkstationClustersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkstationClusters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListWorkstationClustersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createWorkstationCluster( + CreateWorkstationClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkstationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateWorkstationCluster( + UpdateWorkstationClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWorkstationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteWorkstationCluster( + DeleteWorkstationClusterRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteWorkstationCluster, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getWorkstationConfig( + GetWorkstationConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof WorkstationConfig) { + requests.add(request); + responseObserver.onNext(((WorkstationConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkstationConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + WorkstationConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listWorkstationConfigs( + ListWorkstationConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListWorkstationConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListWorkstationConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkstationConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListWorkstationConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUsableWorkstationConfigs( + ListUsableWorkstationConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUsableWorkstationConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListUsableWorkstationConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUsableWorkstationConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUsableWorkstationConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createWorkstationConfig( + CreateWorkstationConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkstationConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateWorkstationConfig( + UpdateWorkstationConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWorkstationConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteWorkstationConfig( + DeleteWorkstationConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteWorkstationConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getWorkstation( + GetWorkstationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Workstation) { + requests.add(request); + responseObserver.onNext(((Workstation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetWorkstation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Workstation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listWorkstations( + ListWorkstationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListWorkstationsResponse) { + requests.add(request); + responseObserver.onNext(((ListWorkstationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListWorkstations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListWorkstationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUsableWorkstations( + ListUsableWorkstationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUsableWorkstationsResponse) { + requests.add(request); + responseObserver.onNext(((ListUsableWorkstationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUsableWorkstations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUsableWorkstationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createWorkstation( + CreateWorkstationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkstation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateWorkstation( + UpdateWorkstationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateWorkstation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteWorkstation( + DeleteWorkstationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteWorkstation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void startWorkstation( + StartWorkstationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StartWorkstation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void stopWorkstation( + StopWorkstationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StopWorkstation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateAccessToken( + GenerateAccessTokenRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateAccessTokenResponse) { + requests.add(request); + responseObserver.onNext(((GenerateAccessTokenResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GenerateAccessToken, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateAccessTokenResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java new file mode 100644 index 000000000000..12e7cdc8cace --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java @@ -0,0 +1,2818 @@ +/* + * 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.workstations.v1; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.workstations.v1.stub.HttpJsonWorkstationsStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class WorkstationsClientHttpJsonTest { + private static MockHttpService mockService; + private static WorkstationsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonWorkstationsStub.getMethodDescriptors(), + WorkstationsSettings.getDefaultEndpoint()); + WorkstationsSettings settings = + WorkstationsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + WorkstationsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WorkstationsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + WorkstationCluster actualResponse = client.getWorkstationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkstationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.getWorkstationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkstationClusterTest2() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7538/locations/location-7538/workstationClusters/workstationCluster-7538"; + + WorkstationCluster actualResponse = client.getWorkstationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkstationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7538/locations/location-7538/workstationClusters/workstationCluster-7538"; + client.getWorkstationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationClustersTest() throws Exception { + WorkstationCluster responsesElement = WorkstationCluster.newBuilder().build(); + ListWorkstationClustersResponse expectedResponse = + ListWorkstationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListWorkstationClustersPagedResponse pagedListResponse = client.listWorkstationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationClustersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkstationClustersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listWorkstationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationClustersTest2() throws Exception { + WorkstationCluster responsesElement = WorkstationCluster.newBuilder().build(); + ListWorkstationClustersResponse expectedResponse = + ListWorkstationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationClusters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListWorkstationClustersPagedResponse pagedListResponse = client.listWorkstationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationClustersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkstationClustersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listWorkstationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + + WorkstationCluster actualResponse = + client + .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkstationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + client.createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkstationClusterTest2() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + + WorkstationCluster actualResponse = + client + .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkstationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + client.createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationCluster workstationCluster = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WorkstationCluster actualResponse = + client.updateWorkstationClusterAsync(workstationCluster, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateWorkstationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationCluster workstationCluster = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkstationClusterAsync(workstationCluster, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + WorkstationCluster actualResponse = client.deleteWorkstationClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkstationClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.deleteWorkstationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteWorkstationClusterTest2() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7538/locations/location-7538/workstationClusters/workstationCluster-7538"; + + WorkstationCluster actualResponse = client.deleteWorkstationClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkstationClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7538/locations/location-7538/workstationClusters/workstationCluster-7538"; + client.deleteWorkstationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + WorkstationConfig actualResponse = client.getWorkstationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkstationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.getWorkstationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkstationConfigTest2() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6150/locations/location-6150/workstationClusters/workstationCluster-6150/workstationConfigs/workstationConfig-6150"; + + WorkstationConfig actualResponse = client.getWorkstationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkstationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6150/locations/location-6150/workstationClusters/workstationCluster-6150/workstationConfigs/workstationConfig-6150"; + client.getWorkstationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationConfigsTest() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListWorkstationConfigsResponse expectedResponse = + ListWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + ListWorkstationConfigsPagedResponse pagedListResponse = client.listWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkstationConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.listWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationConfigsTest2() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListWorkstationConfigsResponse expectedResponse = + ListWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-5665/locations/location-5665/workstationClusters/workstationCluster-5665"; + + ListWorkstationConfigsPagedResponse pagedListResponse = client.listWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkstationConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-5665/locations/location-5665/workstationClusters/workstationCluster-5665"; + client.listWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationConfigsTest() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListUsableWorkstationConfigsResponse expectedResponse = + ListUsableWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + ListUsableWorkstationConfigsPagedResponse pagedListResponse = + client.listUsableWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUsableWorkstationConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.listUsableWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationConfigsTest2() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListUsableWorkstationConfigsResponse expectedResponse = + ListUsableWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-5665/locations/location-5665/workstationClusters/workstationCluster-5665"; + + ListUsableWorkstationConfigsPagedResponse pagedListResponse = + client.listUsableWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUsableWorkstationConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-5665/locations/location-5665/workstationClusters/workstationCluster-5665"; + client.listUsableWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + + WorkstationConfig actualResponse = + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkstationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkstationConfigTest2() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-5665/locations/location-5665/workstationClusters/workstationCluster-5665"; + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + + WorkstationConfig actualResponse = + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkstationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-5665/locations/location-5665/workstationClusters/workstationCluster-5665"; + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationConfig workstationConfig = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WorkstationConfig actualResponse = + client.updateWorkstationConfigAsync(workstationConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateWorkstationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationConfig workstationConfig = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkstationConfigAsync(workstationConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + WorkstationConfig actualResponse = client.deleteWorkstationConfigAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkstationConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.deleteWorkstationConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteWorkstationConfigTest2() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6150/locations/location-6150/workstationClusters/workstationCluster-6150/workstationConfigs/workstationConfig-6150"; + + WorkstationConfig actualResponse = client.deleteWorkstationConfigAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkstationConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6150/locations/location-6150/workstationClusters/workstationCluster-6150/workstationConfigs/workstationConfig-6150"; + client.deleteWorkstationConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + mockService.addResponse(expectedResponse); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.getWorkstation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkstationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.getWorkstation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + + Workstation actualResponse = client.getWorkstation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getWorkstationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + client.getWorkstation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationsTest() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListWorkstationsResponse expectedResponse = + ListWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + ListWorkstationsPagedResponse pagedListResponse = client.listWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkstationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.listWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationsTest2() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListWorkstationsResponse expectedResponse = + ListWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-4265/locations/location-4265/workstationClusters/workstationCluster-4265/workstationConfigs/workstationConfig-4265"; + + ListWorkstationsPagedResponse pagedListResponse = client.listWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listWorkstationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4265/locations/location-4265/workstationClusters/workstationCluster-4265/workstationConfigs/workstationConfig-4265"; + client.listWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationsTest() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListUsableWorkstationsResponse expectedResponse = + ListUsableWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + ListUsableWorkstationsPagedResponse pagedListResponse = client.listUsableWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUsableWorkstationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.listUsableWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationsTest2() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListUsableWorkstationsResponse expectedResponse = + ListUsableWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-4265/locations/location-4265/workstationClusters/workstationCluster-4265/workstationConfigs/workstationConfig-4265"; + + ListUsableWorkstationsPagedResponse pagedListResponse = client.listUsableWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUsableWorkstationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4265/locations/location-4265/workstationClusters/workstationCluster-4265/workstationConfigs/workstationConfig-4265"; + client.listUsableWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + + Workstation actualResponse = + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkstationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = + "projects/project-4265/locations/location-4265/workstationClusters/workstationCluster-4265/workstationConfigs/workstationConfig-4265"; + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + + Workstation actualResponse = + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkstationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-4265/locations/location-4265/workstationClusters/workstationCluster-4265/workstationConfigs/workstationConfig-4265"; + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Workstation workstation = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Workstation actualResponse = client.updateWorkstationAsync(workstation, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateWorkstationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Workstation workstation = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkstationAsync(workstation, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.deleteWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkstationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.deleteWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + + Workstation actualResponse = client.deleteWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteWorkstationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + client.deleteWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void startWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.startWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void startWorkstationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.startWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void startWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + + Workstation actualResponse = client.startWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void startWorkstationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + client.startWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void stopWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.stopWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void stopWorkstationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.stopWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void stopWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + + Workstation actualResponse = client.stopWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void stopWorkstationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8004/locations/location-8004/workstationClusters/workstationCluster-8004/workstationConfigs/workstationConfig-8004/workstations/workstation-8004"; + client.stopWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void generateAccessTokenTest() throws Exception { + GenerateAccessTokenResponse expectedResponse = + GenerateAccessTokenResponse.newBuilder() + .setAccessToken("accessToken-1042689291") + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + WorkstationName workstation = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + GenerateAccessTokenResponse actualResponse = client.generateAccessToken(workstation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateAccessTokenExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkstationName workstation = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.generateAccessToken(workstation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAccessTokenTest2() throws Exception { + GenerateAccessTokenResponse expectedResponse = + GenerateAccessTokenResponse.newBuilder() + .setAccessToken("accessToken-1042689291") + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String workstation = + "projects/project-2916/locations/location-2916/workstationClusters/workstationCluster-2916/workstationConfigs/workstationConfig-2916/workstations/workstation-2916"; + + GenerateAccessTokenResponse actualResponse = client.generateAccessToken(workstation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void generateAccessTokenExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String workstation = + "projects/project-2916/locations/location-2916/workstationClusters/workstationCluster-2916/workstationConfigs/workstationConfig-2916/workstations/workstation-2916"; + client.generateAccessToken(workstation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java new file mode 100644 index 000000000000..54c57be2f5ab --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java @@ -0,0 +1,2528 @@ +/* + * 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.workstations.v1; + +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListUsableWorkstationsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationClustersPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationConfigsPagedResponse; +import static com.google.cloud.workstations.v1.WorkstationsClient.ListWorkstationsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class WorkstationsClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockWorkstations mockWorkstations; + private LocalChannelProvider channelProvider; + private WorkstationsClient client; + + @BeforeClass + public static void startStaticServer() { + mockWorkstations = new MockWorkstations(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockWorkstations, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + WorkstationsSettings settings = + WorkstationsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = WorkstationsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + WorkstationCluster actualResponse = client.getWorkstationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkstationClusterRequest actualRequest = + ((GetWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkstationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.getWorkstationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkstationClusterTest2() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String name = "name3373707"; + + WorkstationCluster actualResponse = client.getWorkstationCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkstationClusterRequest actualRequest = + ((GetWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkstationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.getWorkstationCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationClustersTest() throws Exception { + WorkstationCluster responsesElement = WorkstationCluster.newBuilder().build(); + ListWorkstationClustersResponse expectedResponse = + ListWorkstationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationClusters(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListWorkstationClustersPagedResponse pagedListResponse = client.listWorkstationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationClustersList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkstationClustersRequest actualRequest = + ((ListWorkstationClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkstationClustersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listWorkstationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationClustersTest2() throws Exception { + WorkstationCluster responsesElement = WorkstationCluster.newBuilder().build(); + ListWorkstationClustersResponse expectedResponse = + ListWorkstationClustersResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationClusters(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListWorkstationClustersPagedResponse pagedListResponse = client.listWorkstationClusters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationClustersList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkstationClustersRequest actualRequest = + ((ListWorkstationClustersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkstationClustersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listWorkstationClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + + WorkstationCluster actualResponse = + client + .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkstationClusterRequest actualRequest = + ((CreateWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workstationCluster, actualRequest.getWorkstationCluster()); + Assert.assertEquals(workstationClusterId, actualRequest.getWorkstationClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkstationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + client.createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createWorkstationClusterTest2() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String parent = "parent-995424086"; + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + + WorkstationCluster actualResponse = + client + .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkstationClusterRequest actualRequest = + ((CreateWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workstationCluster, actualRequest.getWorkstationCluster()); + Assert.assertEquals(workstationClusterId, actualRequest.getWorkstationClusterId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkstationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + client.createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WorkstationCluster actualResponse = + client.updateWorkstationClusterAsync(workstationCluster, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateWorkstationClusterRequest actualRequest = + ((UpdateWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(workstationCluster, actualRequest.getWorkstationCluster()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateWorkstationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkstationClusterAsync(workstationCluster, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteWorkstationClusterTest() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + WorkstationCluster actualResponse = client.deleteWorkstationClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkstationClusterRequest actualRequest = + ((DeleteWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkstationClusterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.deleteWorkstationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteWorkstationClusterTest2() throws Exception { + WorkstationCluster expectedResponse = + WorkstationCluster.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setNetwork("network1843485230") + .setSubnetwork("subnetwork-1302785042") + .setPrivateClusterConfig(WorkstationCluster.PrivateClusterConfig.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationClusterTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String name = "name3373707"; + + WorkstationCluster actualResponse = client.deleteWorkstationClusterAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkstationClusterRequest actualRequest = + ((DeleteWorkstationClusterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkstationClusterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.deleteWorkstationClusterAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + WorkstationConfig actualResponse = client.getWorkstationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkstationConfigRequest actualRequest = + ((GetWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkstationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.getWorkstationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkstationConfigTest2() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String name = "name3373707"; + + WorkstationConfig actualResponse = client.getWorkstationConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkstationConfigRequest actualRequest = + ((GetWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkstationConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.getWorkstationConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationConfigsTest() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListWorkstationConfigsResponse expectedResponse = + ListWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + ListWorkstationConfigsPagedResponse pagedListResponse = client.listWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkstationConfigsRequest actualRequest = + ((ListWorkstationConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkstationConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.listWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationConfigsTest2() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListWorkstationConfigsResponse expectedResponse = + ListWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListWorkstationConfigsPagedResponse pagedListResponse = client.listWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkstationConfigsRequest actualRequest = + ((ListWorkstationConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkstationConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationConfigsTest() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListUsableWorkstationConfigsResponse expectedResponse = + ListUsableWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + + ListUsableWorkstationConfigsPagedResponse pagedListResponse = + client.listUsableWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUsableWorkstationConfigsRequest actualRequest = + ((ListUsableWorkstationConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUsableWorkstationConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + client.listUsableWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationConfigsTest2() throws Exception { + WorkstationConfig responsesElement = WorkstationConfig.newBuilder().build(); + ListUsableWorkstationConfigsResponse expectedResponse = + ListUsableWorkstationConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstationConfigs(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUsableWorkstationConfigsPagedResponse pagedListResponse = + client.listUsableWorkstationConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationConfigsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUsableWorkstationConfigsRequest actualRequest = + ((ListUsableWorkstationConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUsableWorkstationConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUsableWorkstationConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + + WorkstationConfig actualResponse = + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkstationConfigRequest actualRequest = + ((CreateWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workstationConfig, actualRequest.getWorkstationConfig()); + Assert.assertEquals(workstationConfigId, actualRequest.getWorkstationConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkstationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createWorkstationConfigTest2() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String parent = "parent-995424086"; + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + + WorkstationConfig actualResponse = + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkstationConfigRequest actualRequest = + ((CreateWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workstationConfig, actualRequest.getWorkstationConfig()); + Assert.assertEquals(workstationConfigId, actualRequest.getWorkstationConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkstationConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + client.createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + WorkstationConfig actualResponse = + client.updateWorkstationConfigAsync(workstationConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateWorkstationConfigRequest actualRequest = + ((UpdateWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(workstationConfig, actualRequest.getWorkstationConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateWorkstationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkstationConfigAsync(workstationConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteWorkstationConfigTest() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + WorkstationConfig actualResponse = client.deleteWorkstationConfigAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkstationConfigRequest actualRequest = + ((DeleteWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkstationConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.deleteWorkstationConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteWorkstationConfigTest2() throws Exception { + WorkstationConfig expectedResponse = + WorkstationConfig.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setIdleTimeout(Duration.newBuilder().build()) + .setRunningTimeout(Duration.newBuilder().build()) + .setHost(WorkstationConfig.Host.newBuilder().build()) + .addAllPersistentDirectories(new ArrayList()) + .setContainer(WorkstationConfig.Container.newBuilder().build()) + .setEncryptionKey(WorkstationConfig.CustomerEncryptionKey.newBuilder().build()) + .setDegraded(true) + .addAllConditions(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String name = "name3373707"; + + WorkstationConfig actualResponse = client.deleteWorkstationConfigAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkstationConfigRequest actualRequest = + ((DeleteWorkstationConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkstationConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.deleteWorkstationConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.getWorkstation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkstationRequest actualRequest = ((GetWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkstationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.getWorkstation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + mockWorkstations.addResponse(expectedResponse); + + String name = "name3373707"; + + Workstation actualResponse = client.getWorkstation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkstationRequest actualRequest = ((GetWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkstationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.getWorkstation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationsTest() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListWorkstationsResponse expectedResponse = + ListWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + ListWorkstationsPagedResponse pagedListResponse = client.listWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkstationsRequest actualRequest = ((ListWorkstationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkstationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.listWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkstationsTest2() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListWorkstationsResponse expectedResponse = + ListWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListWorkstationsPagedResponse pagedListResponse = client.listWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkstationsRequest actualRequest = ((ListWorkstationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkstationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationsTest() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListUsableWorkstationsResponse expectedResponse = + ListUsableWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + + ListUsableWorkstationsPagedResponse pagedListResponse = client.listUsableWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUsableWorkstationsRequest actualRequest = + ((ListUsableWorkstationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUsableWorkstationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + client.listUsableWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableWorkstationsTest2() throws Exception { + Workstation responsesElement = Workstation.newBuilder().build(); + ListUsableWorkstationsResponse expectedResponse = + ListUsableWorkstationsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkstations(Arrays.asList(responsesElement)) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUsableWorkstationsPagedResponse pagedListResponse = client.listUsableWorkstations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkstationsList().get(0), resources.get(0)); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUsableWorkstationsRequest actualRequest = + ((ListUsableWorkstationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUsableWorkstationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUsableWorkstations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + + Workstation actualResponse = + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkstationRequest actualRequest = ((CreateWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workstation, actualRequest.getWorkstation()); + Assert.assertEquals(workstationId, actualRequest.getWorkstationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkstationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String parent = "parent-995424086"; + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + + Workstation actualResponse = + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkstationRequest actualRequest = ((CreateWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workstation, actualRequest.getWorkstation()); + Assert.assertEquals(workstationId, actualRequest.getWorkstationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkstationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String parent = "parent-995424086"; + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + client.createWorkstationAsync(parent, workstation, workstationId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + Workstation workstation = Workstation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Workstation actualResponse = client.updateWorkstationAsync(workstation, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateWorkstationRequest actualRequest = ((UpdateWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(workstation, actualRequest.getWorkstation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateWorkstationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + Workstation workstation = Workstation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateWorkstationAsync(workstation, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.deleteWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkstationRequest actualRequest = ((DeleteWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkstationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.deleteWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String name = "name3373707"; + + Workstation actualResponse = client.deleteWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteWorkstationRequest actualRequest = ((DeleteWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteWorkstationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.deleteWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void startWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.startWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartWorkstationRequest actualRequest = ((StartWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startWorkstationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.startWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void startWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("startWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String name = "name3373707"; + + Workstation actualResponse = client.startWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartWorkstationRequest actualRequest = ((StartWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startWorkstationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.startWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void stopWorkstationTest() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + Workstation actualResponse = client.stopWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StopWorkstationRequest actualRequest = ((StopWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void stopWorkstationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.stopWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void stopWorkstationTest2() throws Exception { + Workstation expectedResponse = + Workstation.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setDisplayName("displayName1714148973") + .setUid("uid115792") + .setReconciling(true) + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setHost("host3208616") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("stopWorkstationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockWorkstations.addResponse(resultOperation); + + String name = "name3373707"; + + Workstation actualResponse = client.stopWorkstationAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StopWorkstationRequest actualRequest = ((StopWorkstationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void stopWorkstationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String name = "name3373707"; + client.stopWorkstationAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void generateAccessTokenTest() throws Exception { + GenerateAccessTokenResponse expectedResponse = + GenerateAccessTokenResponse.newBuilder() + .setAccessToken("accessToken-1042689291") + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + mockWorkstations.addResponse(expectedResponse); + + WorkstationName workstation = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + + GenerateAccessTokenResponse actualResponse = client.generateAccessToken(workstation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateAccessTokenRequest actualRequest = ((GenerateAccessTokenRequest) actualRequests.get(0)); + + Assert.assertEquals(workstation.toString(), actualRequest.getWorkstation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateAccessTokenExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + WorkstationName workstation = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + client.generateAccessToken(workstation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateAccessTokenTest2() throws Exception { + GenerateAccessTokenResponse expectedResponse = + GenerateAccessTokenResponse.newBuilder() + .setAccessToken("accessToken-1042689291") + .setExpireTime(Timestamp.newBuilder().build()) + .build(); + mockWorkstations.addResponse(expectedResponse); + + String workstation = "workstation581588227"; + + GenerateAccessTokenResponse actualResponse = client.generateAccessToken(workstation); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockWorkstations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateAccessTokenRequest actualRequest = ((GenerateAccessTokenRequest) actualRequests.get(0)); + + Assert.assertEquals(workstation, actualRequest.getWorkstation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateAccessTokenExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockWorkstations.addException(exception); + + try { + String workstation = "workstation581588227"; + client.generateAccessToken(workstation); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java new file mode 100644 index 000000000000..e81d3fa7b77d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java @@ -0,0 +1,1969 @@ +package com.google.cloud.workstations.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationMethod() { + io.grpc.MethodDescriptor getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationsMethod() { + io.grpc.MethodDescriptor getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { + io.grpc.MethodDescriptor getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartWorkstationMethod() { + io.grpc.MethodDescriptor getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopWorkstationMethod() { + io.grpc.MethodDescriptor getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WorkstationsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + default void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static abstract class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.Workstation getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation((com.google.cloud.workstations.v1.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations((com.google.cloud.workstations.v1.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation((com.google.cloud.workstations.v1.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation((com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation((com.google.cloud.workstations.v1.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation((com.google.cloud.workstations.v1.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StopWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private static abstract class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java new file mode 100644 index 000000000000..d0e809370a57 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Message for creating a CreateWorkstationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} + */ +public final class CreateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationClusterRequest) + CreateWorkstationClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateWorkstationClusterRequest.newBuilder() to construct. + private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateWorkstationClusterRequest() { + parent_ = ""; + workstationClusterId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateWorkstationClusterRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workstationClusterId_ = ""; + /** + *
+   * Required. ID to use for the workstation cluster.
+   * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationClusterId. + */ + @java.lang.Override + public java.lang.String getWorkstationClusterId() { + java.lang.Object ref = workstationClusterId_; + 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(); + workstationClusterId_ = s; + return s; + } + } + /** + *
+   * Required. ID to use for the workstation cluster.
+   * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationClusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { + java.lang.Object ref = workstationClusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstationClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; + private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; + /** + *
+   * Required. Workstation cluster to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationCluster field is set. + */ + @java.lang.Override + public boolean hasWorkstationCluster() { + return workstationCluster_ != null; + } + /** + *
+   * Required. Workstation cluster to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationCluster. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } + /** + *
+   * Required. Workstation cluster to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationClusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workstationClusterId_); + } + if (workstationCluster_ != null) { + output.writeMessage(3, getWorkstationCluster()); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationClusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); + } + if (workstationCluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationCluster()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + 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.workstations.v1.CreateWorkstationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationClusterId() + .equals(other.getWorkstationClusterId())) return false; + if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; + if (hasWorkstationCluster()) { + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + WORKSTATION_CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationClusterId().hashCode(); + if (hasWorkstationCluster()) { + hash = (37 * hash) + WORKSTATION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationCluster().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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; + } + /** + *
+   * Message for creating a CreateWorkstationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.CreateWorkstationClusterRequest) + com.google.cloud.workstations.v1.CreateWorkstationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + workstationClusterId_ = ""; + workstationCluster_ = null; + if (workstationClusterBuilder_ != null) { + workstationClusterBuilder_.dispose(); + workstationClusterBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest build() { + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest buildPartial() { + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workstationClusterId_ = workstationClusterId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @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.workstations.v1.CreateWorkstationClusterRequest) { + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkstationClusterId().isEmpty()) { + workstationClusterId_ = other.workstationClusterId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasWorkstationCluster()) { + mergeWorkstationCluster(other.getWorkstationCluster()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workstationClusterId_ = ""; + /** + *
+     * Required. ID to use for the workstation cluster.
+     * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationClusterId. + */ + public java.lang.String getWorkstationClusterId() { + java.lang.Object ref = workstationClusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workstationClusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. ID to use for the workstation cluster.
+     * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationClusterId. + */ + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { + java.lang.Object ref = workstationClusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstationClusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. ID to use for the workstation cluster.
+     * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The workstationClusterId to set. + * @return This builder for chaining. + */ + public Builder setWorkstationClusterId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workstationClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. ID to use for the workstation cluster.
+     * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearWorkstationClusterId() { + workstationClusterId_ = getDefaultInstance().getWorkstationClusterId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. ID to use for the workstation cluster.
+     * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for workstationClusterId to set. + * @return This builder for chaining. + */ + public Builder setWorkstationClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workstationClusterId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationCluster field is set. + */ + public boolean hasWorkstationCluster() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationCluster. + */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { + if (workstationClusterBuilder_ == null) { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } else { + return workstationClusterBuilder_.getMessage(); + } + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workstationCluster_ = value; + } else { + workstationClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { + if (workstationClusterBuilder_ == null) { + workstationCluster_ = builderForValue.build(); + } else { + workstationClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClusterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + getWorkstationClusterBuilder().mergeFrom(value); + } else { + workstationCluster_ = value; + } + } else { + workstationClusterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearWorkstationCluster() { + bitField0_ = (bitField0_ & ~0x00000004); + workstationCluster_ = null; + if (workstationClusterBuilder_ != null) { + workstationClusterBuilder_.dispose(); + workstationClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getWorkstationClusterFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + if (workstationClusterBuilder_ != null) { + return workstationClusterBuilder_.getMessageOrBuilder(); + } else { + return workstationCluster_ == null ? + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } + } + /** + *
+     * Required. Workstation cluster to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + getWorkstationClusterFieldBuilder() { + if (workstationClusterBuilder_ == null) { + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); + workstationCluster_ = null; + } + return workstationClusterBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) + private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(); + } + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..20421ed95aec --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface CreateWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. ID to use for the workstation cluster.
+   * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationClusterId. + */ + java.lang.String getWorkstationClusterId(); + /** + *
+   * Required. ID to use for the workstation cluster.
+   * 
+ * + * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationClusterId. + */ + com.google.protobuf.ByteString + getWorkstationClusterIdBytes(); + + /** + *
+   * Required. Workstation cluster to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationCluster field is set. + */ + boolean hasWorkstationCluster(); + /** + *
+   * Required. Workstation cluster to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationCluster. + */ + com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); + /** + *
+   * Required. Workstation cluster to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java new file mode 100644 index 000000000000..9f108191266b --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Message for creating a CreateWorkstationConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} + */ +public final class CreateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationConfigRequest) + CreateWorkstationConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateWorkstationConfigRequest.newBuilder() to construct. + private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateWorkstationConfigRequest() { + parent_ = ""; + workstationConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateWorkstationConfigRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workstationConfigId_ = ""; + /** + *
+   * Required. ID to use for the config.
+   * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfigId. + */ + @java.lang.Override + public java.lang.String getWorkstationConfigId() { + java.lang.Object ref = workstationConfigId_; + 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(); + workstationConfigId_ = s; + return s; + } + } + /** + *
+   * Required. ID to use for the config.
+   * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { + java.lang.Object ref = workstationConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstationConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; + /** + *
+   * Required. Config to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationConfig field is set. + */ + @java.lang.Override + public boolean hasWorkstationConfig() { + return workstationConfig_ != null; + } + /** + *
+   * Required. Config to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfig. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } + /** + *
+   * Required. Config to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workstationConfigId_); + } + if (workstationConfig_ != null) { + output.writeMessage(3, getWorkstationConfig()); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationConfigId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); + } + if (workstationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationConfig()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + 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.workstations.v1.CreateWorkstationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationConfigId() + .equals(other.getWorkstationConfigId())) return false; + if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; + if (hasWorkstationConfig()) { + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + WORKSTATION_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationConfigId().hashCode(); + if (hasWorkstationConfig()) { + hash = (37 * hash) + WORKSTATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationConfig().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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; + } + /** + *
+   * Message for creating a CreateWorkstationConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.CreateWorkstationConfigRequest) + com.google.cloud.workstations.v1.CreateWorkstationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + workstationConfigId_ = ""; + workstationConfig_ = null; + if (workstationConfigBuilder_ != null) { + workstationConfigBuilder_.dispose(); + workstationConfigBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest build() { + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest buildPartial() { + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workstationConfigId_ = workstationConfigId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @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.workstations.v1.CreateWorkstationConfigRequest) { + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkstationConfigId().isEmpty()) { + workstationConfigId_ = other.workstationConfigId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasWorkstationConfig()) { + mergeWorkstationConfig(other.getWorkstationConfig()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workstationConfigId_ = ""; + /** + *
+     * Required. ID to use for the config.
+     * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfigId. + */ + public java.lang.String getWorkstationConfigId() { + java.lang.Object ref = workstationConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workstationConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. ID to use for the config.
+     * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationConfigId. + */ + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { + java.lang.Object ref = workstationConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstationConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. ID to use for the config.
+     * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The workstationConfigId to set. + * @return This builder for chaining. + */ + public Builder setWorkstationConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workstationConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. ID to use for the config.
+     * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearWorkstationConfigId() { + workstationConfigId_ = getDefaultInstance().getWorkstationConfigId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. ID to use for the config.
+     * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for workstationConfigId to set. + * @return This builder for chaining. + */ + public Builder setWorkstationConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workstationConfigId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationConfig field is set. + */ + public boolean hasWorkstationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfig. + */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { + if (workstationConfigBuilder_ == null) { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } else { + return workstationConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workstationConfig_ = value; + } else { + workstationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigBuilder_ == null) { + workstationConfig_ = builderForValue.build(); + } else { + workstationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + getWorkstationConfigBuilder().mergeFrom(value); + } else { + workstationConfig_ = value; + } + } else { + workstationConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearWorkstationConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + workstationConfig_ = null; + if (workstationConfigBuilder_ != null) { + workstationConfigBuilder_.dispose(); + workstationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getWorkstationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + if (workstationConfigBuilder_ != null) { + return workstationConfigBuilder_.getMessageOrBuilder(); + } else { + return workstationConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } + } + /** + *
+     * Required. Config to create.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + getWorkstationConfigFieldBuilder() { + if (workstationConfigBuilder_ == null) { + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); + workstationConfig_ = null; + } + return workstationConfigBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) + private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(); + } + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..c359f03cca7d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface CreateWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. ID to use for the config.
+   * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfigId. + */ + java.lang.String getWorkstationConfigId(); + /** + *
+   * Required. ID to use for the config.
+   * 
+ * + * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationConfigId. + */ + com.google.protobuf.ByteString + getWorkstationConfigIdBytes(); + + /** + *
+   * Required. Config to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationConfig field is set. + */ + boolean hasWorkstationConfig(); + /** + *
+   * Required. Config to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfig. + */ + com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); + /** + *
+   * Required. Config to create.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java new file mode 100644 index 000000000000..3000b28b434f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Message for creating a CreateWorkstation.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} + */ +public final class CreateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationRequest) + CreateWorkstationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateWorkstationRequest.newBuilder() to construct. + private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateWorkstationRequest() { + parent_ = ""; + workstationId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateWorkstationRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSTATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object workstationId_ = ""; + /** + *
+   * Required. ID to use for the workstation.
+   * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationId. + */ + @java.lang.Override + public java.lang.String getWorkstationId() { + java.lang.Object ref = workstationId_; + 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(); + workstationId_ = s; + return s; + } + } + /** + *
+   * Required. ID to use for the workstation.
+   * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkstationIdBytes() { + java.lang.Object ref = workstationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKSTATION_FIELD_NUMBER = 3; + private com.google.cloud.workstations.v1.Workstation workstation_; + /** + *
+   * Required. Workstation to create.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstation field is set. + */ + @java.lang.Override + public boolean hasWorkstation() { + return workstation_ != null; + } + /** + *
+   * Required. Workstation to create.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstation. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation getWorkstation() { + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } + /** + *
+   * Required. Workstation to create.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workstationId_); + } + if (workstation_ != null) { + output.writeMessage(3, getWorkstation()); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); + } + if (workstation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstation()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); + } + 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.workstations.v1.CreateWorkstationRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.CreateWorkstationRequest other = (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationId() + .equals(other.getWorkstationId())) return false; + if (hasWorkstation() != other.hasWorkstation()) return false; + if (hasWorkstation()) { + if (!getWorkstation() + .equals(other.getWorkstation())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + WORKSTATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationId().hashCode(); + if (hasWorkstation()) { + hash = (37 * hash) + WORKSTATION_FIELD_NUMBER; + hash = (53 * hash) + getWorkstation().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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; + } + /** + *
+   * Message for creating a CreateWorkstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.CreateWorkstationRequest) + com.google.cloud.workstations.v1.CreateWorkstationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.CreateWorkstationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + workstationId_ = ""; + workstation_ = null; + if (workstationBuilder_ != null) { + workstationBuilder_.dispose(); + workstationBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationRequest build() { + com.google.cloud.workstations.v1.CreateWorkstationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.CreateWorkstationRequest buildPartial() { + com.google.cloud.workstations.v1.CreateWorkstationRequest result = new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workstationId_ = workstationId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @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.workstations.v1.CreateWorkstationRequest) { + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationRequest other) { + if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkstationId().isEmpty()) { + workstationId_ = other.workstationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasWorkstation()) { + mergeWorkstation(other.getWorkstation()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workstationId_ = ""; + /** + *
+     * Required. ID to use for the workstation.
+     * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationId. + */ + public java.lang.String getWorkstationId() { + java.lang.Object ref = workstationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workstationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. ID to use for the workstation.
+     * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationId. + */ + public com.google.protobuf.ByteString + getWorkstationIdBytes() { + java.lang.Object ref = workstationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. ID to use for the workstation.
+     * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The workstationId to set. + * @return This builder for chaining. + */ + public Builder setWorkstationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workstationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. ID to use for the workstation.
+     * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearWorkstationId() { + workstationId_ = getDefaultInstance().getWorkstationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Required. ID to use for the workstation.
+     * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for workstationId to set. + * @return This builder for chaining. + */ + public Builder setWorkstationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workstationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.workstations.v1.Workstation workstation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstation field is set. + */ + public boolean hasWorkstation() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstation. + */ + public com.google.cloud.workstations.v1.Workstation getWorkstation() { + if (workstationBuilder_ == null) { + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } else { + return workstationBuilder_.getMessage(); + } + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { + if (workstationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workstation_ = value; + } else { + workstationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstation( + com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationBuilder_ == null) { + workstation_ = builderForValue.build(); + } else { + workstationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { + if (workstationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + getWorkstationBuilder().mergeFrom(value); + } else { + workstation_ = value; + } + } else { + workstationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearWorkstation() { + bitField0_ = (bitField0_ & ~0x00000004); + workstation_ = null; + if (workstationBuilder_ != null) { + workstationBuilder_.dispose(); + workstationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getWorkstationFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { + if (workstationBuilder_ != null) { + return workstationBuilder_.getMessageOrBuilder(); + } else { + return workstation_ == null ? + com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } + } + /** + *
+     * Required. Workstation to create.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + getWorkstationFieldBuilder() { + if (workstationBuilder_ == null) { + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); + workstation_ = null; + } + return workstationBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 4; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationRequest) + private static final com.google.cloud.workstations.v1.CreateWorkstationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationRequest(); + } + + public static com.google.cloud.workstations.v1.CreateWorkstationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.CreateWorkstationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..253cde4428c8 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface CreateWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. ID to use for the workstation.
+   * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationId. + */ + java.lang.String getWorkstationId(); + /** + *
+   * Required. ID to use for the workstation.
+   * 
+ * + * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for workstationId. + */ + com.google.protobuf.ByteString + getWorkstationIdBytes(); + + /** + *
+   * Required. Workstation to create.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstation field is set. + */ + boolean hasWorkstation(); + /** + *
+   * Required. Workstation to create.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstation. + */ + com.google.cloud.workstations.v1.Workstation getWorkstation(); + /** + *
+   * Required. Workstation to create.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 4; + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java new file mode 100644 index 000000000000..c95610cdb243 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java @@ -0,0 +1,925 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Message for deleting a workstation cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} + */ +public final class DeleteWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) + DeleteWorkstationClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteWorkstationClusterRequest.newBuilder() to construct. + private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteWorkstationClusterRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteWorkstationClusterRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the workstation cluster to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the workstation cluster to delete.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation cluster on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation cluster on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 4; + private boolean force_ = false; + /** + *
+   * If set, any workstation configurations and workstations in the
+   * workstation cluster are also deleted. Otherwise, the request only
+   * works if the workstation cluster has no configurations or workstations.
+   * 
+ * + * bool force = 4; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (force_ != false) { + output.writeBool(4, force_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); + } + 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.workstations.v1.DeleteWorkstationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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; + } + /** + *
+   * Message for deleting a workstation cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + validateOnly_ = false; + etag_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest build() { + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest buildPartial() { + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.force_ = force_; + } + } + + @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.workstations.v1.DeleteWorkstationClusterRequest) { + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the workstation cluster to delete.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the workstation cluster to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the workstation cluster to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation cluster to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation cluster to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not apply it.
+     * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not apply it.
+     * 
+ * + * bool validate_only = 2; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not apply it.
+     * 
+ * + * bool validate_only = 2; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation cluster on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation cluster on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation cluster on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation cluster on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation cluster on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean force_ ; + /** + *
+     * If set, any workstation configurations and workstations in the
+     * workstation cluster are also deleted. Otherwise, the request only
+     * works if the workstation cluster has no configurations or workstations.
+     * 
+ * + * bool force = 4; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + *
+     * If set, any workstation configurations and workstations in the
+     * workstation cluster are also deleted. Otherwise, the request only
+     * works if the workstation cluster has no configurations or workstations.
+     * 
+ * + * bool force = 4; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, any workstation configurations and workstations in the
+     * workstation cluster are also deleted. Otherwise, the request only
+     * works if the workstation cluster has no configurations or workstations.
+     * 
+ * + * bool force = 4; + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000008); + force_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) + private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(); + } + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..afa20ef4a50e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface DeleteWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workstation cluster to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workstation cluster to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * If set, validate the request and preview the review, but do not apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation cluster on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation cluster on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * If set, any workstation configurations and workstations in the
+   * workstation cluster are also deleted. Otherwise, the request only
+   * works if the workstation cluster has no configurations or workstations.
+   * 
+ * + * bool force = 4; + * @return The force. + */ + boolean getForce(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java new file mode 100644 index 000000000000..bfc74fd93b2c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java @@ -0,0 +1,925 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Message for deleting a workstation configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} + */ +public final class DeleteWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) + DeleteWorkstationConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteWorkstationConfigRequest.newBuilder() to construct. + private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteWorkstationConfigRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteWorkstationConfigRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the config to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the config to delete.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * If set, the request will be rejected if the latest version of the config on
+   * the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * If set, the request will be rejected if the latest version of the config on
+   * the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 4; + private boolean force_ = false; + /** + *
+   * If set, any Workstations in the config will also be deleted. Otherwise,
+   * the request will work only if the config has no workstations.
+   * 
+ * + * bool force = 4; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (force_ != false) { + output.writeBool(4, force_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); + } + 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.workstations.v1.DeleteWorkstationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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; + } + /** + *
+   * Message for deleting a workstation configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + validateOnly_ = false; + etag_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest build() { + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest buildPartial() { + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.force_ = force_; + } + } + + @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.workstations.v1.DeleteWorkstationConfigRequest) { + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the config to delete.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the config to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the config to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the config to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the config to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * If set, the request will be rejected if the latest version of the config on
+     * the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the config on
+     * the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the config on
+     * the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the config on
+     * the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the config on
+     * the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean force_ ; + /** + *
+     * If set, any Workstations in the config will also be deleted. Otherwise,
+     * the request will work only if the config has no workstations.
+     * 
+ * + * bool force = 4; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + *
+     * If set, any Workstations in the config will also be deleted. Otherwise,
+     * the request will work only if the config has no workstations.
+     * 
+ * + * bool force = 4; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, any Workstations in the config will also be deleted. Otherwise,
+     * the request will work only if the config has no workstations.
+     * 
+ * + * bool force = 4; + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000008); + force_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) + private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(); + } + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..9c9534314cec --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface DeleteWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the config to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the config to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, the request will be rejected if the latest version of the config on
+   * the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * If set, the request will be rejected if the latest version of the config on
+   * the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * If set, any Workstations in the config will also be deleted. Otherwise,
+   * the request will work only if the config has no workstations.
+   * 
+ * + * bool force = 4; + * @return The force. + */ + boolean getForce(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java new file mode 100644 index 000000000000..113e7f12e2c6 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for DeleteWorkstation.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} + */ +public final class DeleteWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationRequest) + DeleteWorkstationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteWorkstationRequest.newBuilder() to construct. + private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteWorkstationRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteWorkstationRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the workstation to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the workstation to delete.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + 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.workstations.v1.DeleteWorkstationRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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; + } + /** + *
+   * Request message for DeleteWorkstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.DeleteWorkstationRequest) + com.google.cloud.workstations.v1.DeleteWorkstationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.DeleteWorkstationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + validateOnly_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationRequest build() { + com.google.cloud.workstations.v1.DeleteWorkstationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.DeleteWorkstationRequest buildPartial() { + com.google.cloud.workstations.v1.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @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.workstations.v1.DeleteWorkstationRequest) { + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationRequest other) { + if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the workstation to delete.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the workstation to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the workstation to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) + private static final com.google.cloud.workstations.v1.DeleteWorkstationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(); + } + + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.DeleteWorkstationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..8f37ed012b8f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface DeleteWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workstation to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workstation to delete.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java new file mode 100644 index 000000000000..85d7aba15809 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java @@ -0,0 +1,1233 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for GenerateAccessToken.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} + */ +public final class GenerateAccessTokenRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenRequest) + GenerateAccessTokenRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GenerateAccessTokenRequest.newBuilder() to construct. + private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateAccessTokenRequest() { + workstation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerateAccessTokenRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + } + + private int expirationCase_ = 0; + private java.lang.Object expiration_; + public enum ExpirationCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXPIRE_TIME(2), + TTL(3), + EXPIRATION_NOT_SET(0); + private final int value; + private ExpirationCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExpirationCase valueOf(int value) { + return forNumber(value); + } + + public static ExpirationCase forNumber(int value) { + switch (value) { + case 2: return EXPIRE_TIME; + case 3: return TTL; + case 0: return EXPIRATION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 2; + /** + *
+   * Desired expiration time of the access token. This value must
+   * be at most 24 hours in the future. If a value is not specified, the
+   * token's expiration time will be set to a default value of 1 hour in the
+   * future.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 2; + } + /** + *
+   * Desired expiration time of the access token. This value must
+   * be at most 24 hours in the future. If a value is not specified, the
+   * token's expiration time will be set to a default value of 1 hour in the
+   * future.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + *
+   * Desired expiration time of the access token. This value must
+   * be at most 24 hours in the future. If a value is not specified, the
+   * token's expiration time will be set to a default value of 1 hour in the
+   * future.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int TTL_FIELD_NUMBER = 3; + /** + *
+   * Desired lifetime duration of the access token. This value must
+   * be at most 24 hours. If a value is not specified, the token's lifetime
+   * will be set to a default value of 1 hour.
+   * 
+ * + * .google.protobuf.Duration ttl = 3; + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 3; + } + /** + *
+   * Desired lifetime duration of the access token. This value must
+   * be at most 24 hours. If a value is not specified, the token's lifetime
+   * will be set to a default value of 1 hour.
+   * 
+ * + * .google.protobuf.Duration ttl = 3; + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + *
+   * Desired lifetime duration of the access token. This value must
+   * be at most 24 hours. If a value is not specified, the token's lifetime
+   * will be set to a default value of 1 hour.
+   * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + public static final int WORKSTATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workstation_ = ""; + /** + *
+   * Required. Name of the workstation for which the access token should be
+   * generated.
+   * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The workstation. + */ + @java.lang.Override + public java.lang.String getWorkstation() { + java.lang.Object ref = workstation_; + 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(); + workstation_ = s; + return s; + } + } + /** + *
+   * Required. Name of the workstation for which the access token should be
+   * generated.
+   * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for workstation. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkstationBytes() { + java.lang.Object ref = workstation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_); + } + if (expirationCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Duration) expiration_); + } + 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(workstation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_); + } + if (expirationCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_); + } + if (expirationCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.protobuf.Duration) expiration_); + } + 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.workstations.v1.GenerateAccessTokenRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; + + if (!getWorkstation() + .equals(other.getWorkstation())) return false; + if (!getExpirationCase().equals(other.getExpirationCase())) return false; + switch (expirationCase_) { + case 2: + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + break; + case 3: + if (!getTtl() + .equals(other.getTtl())) return false; + break; + case 0: + default: + } + 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) + WORKSTATION_FIELD_NUMBER; + hash = (53 * hash) + getWorkstation().hashCode(); + switch (expirationCase_) { + case 2: + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + break; + case 3: + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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; + } + /** + *
+   * Request message for GenerateAccessToken.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GenerateAccessTokenRequest) + com.google.cloud.workstations.v1.GenerateAccessTokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.clear(); + } + if (ttlBuilder_ != null) { + ttlBuilder_.clear(); + } + workstation_ = ""; + expirationCase_ = 0; + expiration_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GenerateAccessTokenRequest build() { + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GenerateAccessTokenRequest buildPartial() { + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.workstation_ = workstation_; + } + } + + private void buildPartialOneofs(com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { + result.expirationCase_ = expirationCase_; + result.expiration_ = this.expiration_; + if (expirationCase_ == 2 && + expireTimeBuilder_ != null) { + result.expiration_ = expireTimeBuilder_.build(); + } + if (expirationCase_ == 3 && + ttlBuilder_ != null) { + result.expiration_ = ttlBuilder_.build(); + } + } + + @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.workstations.v1.GenerateAccessTokenRequest) { + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenRequest other) { + if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) return this; + if (!other.getWorkstation().isEmpty()) { + workstation_ = other.workstation_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getExpirationCase()) { + case EXPIRE_TIME: { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: { + break; + } + } + 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: { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getTtlFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int expirationCase_ = 0; + private java.lang.Object expiration_; + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); + } + + public Builder clearExpiration() { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expirationCase_ == 2; + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (expirationCase_ == 2) { + return expireTimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + expirationCase_ = 2; + return this; + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 2; + return this; + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2 && + expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_) + .mergeFrom(value).buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 2) { + expireTimeBuilder_.mergeFrom(value); + } else { + expireTimeBuilder_.setMessage(value); + } + } + expirationCase_ = 2; + return this; + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + if (expirationCase_ == 2) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 2) { + expirationCase_ = 0; + expiration_ = null; + } + expireTimeBuilder_.clear(); + } + return this; + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if ((expirationCase_ == 2) && (expireTimeBuilder_ != null)) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 2) { + return (com.google.protobuf.Timestamp) expiration_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + *
+     * Desired expiration time of the access token. This value must
+     * be at most 24 hours in the future. If a value is not specified, the
+     * token's expiration time will be set to a default value of 1 hour in the
+     * future.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + if (!(expirationCase_ == 2)) { + expiration_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) expiration_, + getParentForChildren(), + isClean()); + expiration_ = null; + } + expirationCase_ = 2; + onChanged(); + return expireTimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + * @return Whether the ttl field is set. + */ + @java.lang.Override + public boolean hasTtl() { + return expirationCase_ == 3; + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + * @return The ttl. + */ + @java.lang.Override + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (expirationCase_ == 3) { + return ttlBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expiration_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + expirationCase_ = 3; + return this; + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + expiration_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + expirationCase_ = 3; + return this; + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3 && + expiration_ != com.google.protobuf.Duration.getDefaultInstance()) { + expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_) + .mergeFrom(value).buildPartial(); + } else { + expiration_ = value; + } + onChanged(); + } else { + if (expirationCase_ == 3) { + ttlBuilder_.mergeFrom(value); + } else { + ttlBuilder_.setMessage(value); + } + } + expirationCase_ = 3; + return this; + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + onChanged(); + } + } else { + if (expirationCase_ == 3) { + expirationCase_ = 0; + expiration_ = null; + } + ttlBuilder_.clear(); + } + return this; + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + return getTtlFieldBuilder().getBuilder(); + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if ((expirationCase_ == 3) && (ttlBuilder_ != null)) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + if (expirationCase_ == 3) { + return (com.google.protobuf.Duration) expiration_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + *
+     * Desired lifetime duration of the access token. This value must
+     * be at most 24 hours. If a value is not specified, the token's lifetime
+     * will be set to a default value of 1 hour.
+     * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + if (!(expirationCase_ == 3)) { + expiration_ = com.google.protobuf.Duration.getDefaultInstance(); + } + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) expiration_, + getParentForChildren(), + isClean()); + expiration_ = null; + } + expirationCase_ = 3; + onChanged(); + return ttlBuilder_; + } + + private java.lang.Object workstation_ = ""; + /** + *
+     * Required. Name of the workstation for which the access token should be
+     * generated.
+     * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The workstation. + */ + public java.lang.String getWorkstation() { + java.lang.Object ref = workstation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workstation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the workstation for which the access token should be
+     * generated.
+     * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for workstation. + */ + public com.google.protobuf.ByteString + getWorkstationBytes() { + java.lang.Object ref = workstation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workstation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the workstation for which the access token should be
+     * generated.
+     * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The workstation to set. + * @return This builder for chaining. + */ + public Builder setWorkstation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workstation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation for which the access token should be
+     * generated.
+     * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearWorkstation() { + workstation_ = getDefaultInstance().getWorkstation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation for which the access token should be
+     * generated.
+     * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for workstation to set. + * @return This builder for chaining. + */ + public Builder setWorkstationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workstation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) + private static final com.google.cloud.workstations.v1.GenerateAccessTokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(); + } + + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.GenerateAccessTokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java new file mode 100644 index 000000000000..997b9e83ce70 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java @@ -0,0 +1,102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GenerateAccessTokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Desired expiration time of the access token. This value must
+   * be at most 24 hours in the future. If a value is not specified, the
+   * token's expiration time will be set to a default value of 1 hour in the
+   * future.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + *
+   * Desired expiration time of the access token. This value must
+   * be at most 24 hours in the future. If a value is not specified, the
+   * token's expiration time will be set to a default value of 1 hour in the
+   * future.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + *
+   * Desired expiration time of the access token. This value must
+   * be at most 24 hours in the future. If a value is not specified, the
+   * token's expiration time will be set to a default value of 1 hour in the
+   * future.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + *
+   * Desired lifetime duration of the access token. This value must
+   * be at most 24 hours. If a value is not specified, the token's lifetime
+   * will be set to a default value of 1 hour.
+   * 
+ * + * .google.protobuf.Duration ttl = 3; + * @return Whether the ttl field is set. + */ + boolean hasTtl(); + /** + *
+   * Desired lifetime duration of the access token. This value must
+   * be at most 24 hours. If a value is not specified, the token's lifetime
+   * will be set to a default value of 1 hour.
+   * 
+ * + * .google.protobuf.Duration ttl = 3; + * @return The ttl. + */ + com.google.protobuf.Duration getTtl(); + /** + *
+   * Desired lifetime duration of the access token. This value must
+   * be at most 24 hours. If a value is not specified, the token's lifetime
+   * will be set to a default value of 1 hour.
+   * 
+ * + * .google.protobuf.Duration ttl = 3; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + + /** + *
+   * Required. Name of the workstation for which the access token should be
+   * generated.
+   * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The workstation. + */ + java.lang.String getWorkstation(); + /** + *
+   * Required. Name of the workstation for which the access token should be
+   * generated.
+   * 
+ * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for workstation. + */ + com.google.protobuf.ByteString + getWorkstationBytes(); + + public com.google.cloud.workstations.v1.GenerateAccessTokenRequest.ExpirationCase getExpirationCase(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java new file mode 100644 index 000000000000..1c60602c8de0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java @@ -0,0 +1,830 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Response message for GenerateAccessToken.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} + */ +public final class GenerateAccessTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenResponse) + GenerateAccessTokenResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GenerateAccessTokenResponse.newBuilder() to construct. + private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateAccessTokenResponse() { + accessToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GenerateAccessTokenResponse(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + } + + public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object accessToken_ = ""; + /** + *
+   * The generated bearer access token. To use this token, include it in an
+   * Authorization header of an HTTP request sent to the associated
+   * workstation's hostname, for example, `Authorization: Bearer
+   * <access_token>`.
+   * 
+ * + * string access_token = 1; + * @return The accessToken. + */ + @java.lang.Override + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + 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(); + accessToken_ = s; + return s; + } + } + /** + *
+   * The generated bearer access token. To use this token, include it in an
+   * Authorization header of an HTTP request sent to the associated
+   * workstation's hostname, for example, `Authorization: Bearer
+   * <access_token>`.
+   * 
+ * + * string access_token = 1; + * @return The bytes for accessToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp expireTime_; + /** + *
+   * Time at which the generated token will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + *
+   * Time at which the generated token will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + *
+   * Time at which the generated token will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + 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(accessToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); + } + if (expireTime_ != null) { + output.writeMessage(2, getExpireTime()); + } + 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(accessToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); + } + 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.workstations.v1.GenerateAccessTokenResponse)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; + + if (!getAccessToken() + .equals(other.getAccessToken())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime() + .equals(other.getExpireTime())) 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) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for GenerateAccessToken.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GenerateAccessTokenResponse) + com.google.cloud.workstations.v1.GenerateAccessTokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessToken_ = ""; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse build() { + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse buildPartial() { + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessToken_ = accessToken_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); + } + } + + @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.workstations.v1.GenerateAccessTokenResponse) { + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenResponse other) { + if (other == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) return this; + if (!other.getAccessToken().isEmpty()) { + accessToken_ = other.accessToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + 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: { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + 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 accessToken_ = ""; + /** + *
+     * The generated bearer access token. To use this token, include it in an
+     * Authorization header of an HTTP request sent to the associated
+     * workstation's hostname, for example, `Authorization: Bearer
+     * <access_token>`.
+     * 
+ * + * string access_token = 1; + * @return The accessToken. + */ + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The generated bearer access token. To use this token, include it in an
+     * Authorization header of an HTTP request sent to the associated
+     * workstation's hostname, for example, `Authorization: Bearer
+     * <access_token>`.
+     * 
+ * + * string access_token = 1; + * @return The bytes for accessToken. + */ + public com.google.protobuf.ByteString + getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The generated bearer access token. To use this token, include it in an
+     * Authorization header of an HTTP request sent to the associated
+     * workstation's hostname, for example, `Authorization: Bearer
+     * <access_token>`.
+     * 
+ * + * string access_token = 1; + * @param value The accessToken to set. + * @return This builder for chaining. + */ + public Builder setAccessToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + accessToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The generated bearer access token. To use this token, include it in an
+     * Authorization header of an HTTP request sent to the associated
+     * workstation's hostname, for example, `Authorization: Bearer
+     * <access_token>`.
+     * 
+ * + * string access_token = 1; + * @return This builder for chaining. + */ + public Builder clearAccessToken() { + accessToken_ = getDefaultInstance().getAccessToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The generated bearer access token. To use this token, include it in an
+     * Authorization header of an HTTP request sent to the associated
+     * workstation's hostname, for example, `Authorization: Bearer
+     * <access_token>`.
+     * 
+ * + * string access_token = 1; + * @param value The bytes for accessToken to set. + * @return This builder for chaining. + */ + public Builder setAccessTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + accessToken_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000002); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + } + /** + *
+     * Time at which the generated token will expire.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + @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.workstations.v1.GenerateAccessTokenResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) + private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(); + } + + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java new file mode 100644 index 000000000000..d89ddcee2dca --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GenerateAccessTokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The generated bearer access token. To use this token, include it in an
+   * Authorization header of an HTTP request sent to the associated
+   * workstation's hostname, for example, `Authorization: Bearer
+   * <access_token>`.
+   * 
+ * + * string access_token = 1; + * @return The accessToken. + */ + java.lang.String getAccessToken(); + /** + *
+   * The generated bearer access token. To use this token, include it in an
+   * Authorization header of an HTTP request sent to the associated
+   * workstation's hostname, for example, `Authorization: Bearer
+   * <access_token>`.
+   * 
+ * + * string access_token = 1; + * @return The bytes for accessToken. + */ + com.google.protobuf.ByteString + getAccessTokenBytes(); + + /** + *
+   * Time at which the generated token will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + *
+   * Time at which the generated token will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + *
+   * Time at which the generated token will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java new file mode 100644 index 000000000000..17a205fe875d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for GetWorkstationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} + */ +public final class GetWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationClusterRequest) + GetWorkstationClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetWorkstationClusterRequest.newBuilder() to construct. + private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetWorkstationClusterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetWorkstationClusterRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.workstations.v1.GetWorkstationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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; + } + /** + *
+   * Request message for GetWorkstationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GetWorkstationClusterRequest) + com.google.cloud.workstations.v1.GetWorkstationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.GetWorkstationClusterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationClusterRequest build() { + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationClusterRequest buildPartial() { + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.workstations.v1.GetWorkstationClusterRequest) { + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) + private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(); + } + + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..de5face476b3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java new file mode 100644 index 000000000000..4d2d3f7ff7f7 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for GetWorkstationConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} + */ +public final class GetWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationConfigRequest) + GetWorkstationConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetWorkstationConfigRequest.newBuilder() to construct. + private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetWorkstationConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetWorkstationConfigRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.workstations.v1.GetWorkstationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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; + } + /** + *
+   * Request message for GetWorkstationConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GetWorkstationConfigRequest) + com.google.cloud.workstations.v1.GetWorkstationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.GetWorkstationConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationConfigRequest build() { + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationConfigRequest buildPartial() { + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.workstations.v1.GetWorkstationConfigRequest) { + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) + private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(); + } + + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..82930ab5dfad --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java new file mode 100644 index 000000000000..658238ad9f82 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java @@ -0,0 +1,580 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for GetWorkstation.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} + */ +public final class GetWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationRequest) + GetWorkstationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetWorkstationRequest.newBuilder() to construct. + private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetWorkstationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetWorkstationRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.workstations.v1.GetWorkstationRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.GetWorkstationRequest other = (com.google.cloud.workstations.v1.GetWorkstationRequest) obj; + + if (!getName() + .equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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; + } + /** + *
+   * Request message for GetWorkstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GetWorkstationRequest) + com.google.cloud.workstations.v1.GetWorkstationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.GetWorkstationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationRequest build() { + com.google.cloud.workstations.v1.GetWorkstationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.GetWorkstationRequest buildPartial() { + com.google.cloud.workstations.v1.GetWorkstationRequest result = new com.google.cloud.workstations.v1.GetWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.workstations.v1.GetWorkstationRequest) { + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationRequest other) { + if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the requested resource.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationRequest) + private static final com.google.cloud.workstations.v1.GetWorkstationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationRequest(); + } + + public static com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.GetWorkstationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..83c5b482bd3f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java new file mode 100644 index 000000000000..0b6c1645c78d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java @@ -0,0 +1,826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for ListUsableWorkstationConfigs.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} + */ +public final class ListUsableWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) + ListUsableWorkstationConfigsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. + private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableWorkstationConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListUsableWorkstationConfigsRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.workstations.v1.ListUsableWorkstationConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest 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; + } + /** + *
+   * Request message for ListUsableWorkstationConfigs.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest build() { + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buildPartial() { + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.workstations.v1.ListUsableWorkstationConfigsRequest) { + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(); + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..204628d6fa82 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListUsableWorkstationConfigsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java new file mode 100644 index 000000000000..f162138a9676 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java @@ -0,0 +1,1266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Response message for ListUsableWorkstationConfigs.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} + */ +public final class ListUsableWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) + ListUsableWorkstationConfigsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. + private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableWorkstationConfigsResponse() { + workstationConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListUsableWorkstationConfigsResponse(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + } + + public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List workstationConfigs_; + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public java.util.List getWorkstationConfigsList() { + return workstationConfigs_; + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public java.util.List + getWorkstationConfigsOrBuilderList() { + return workstationConfigs_; + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public int getWorkstationConfigsCount() { + return workstationConfigs_.size(); + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { + return workstationConfigs_.get(index); + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { + return workstationConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(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 < workstationConfigs_.size(); i++) { + output.writeMessage(1, workstationConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < workstationConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.workstations.v1.ListUsableWorkstationConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; + + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) 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 (getWorkstationConfigsCount() > 0) { + hash = (37 * hash) + WORKSTATION_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for ListUsableWorkstationConfigs.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (workstationConfigsBuilder_ == null) { + workstationConfigs_ = java.util.Collections.emptyList(); + } else { + workstationConfigs_ = null; + workstationConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse build() { + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse buildPartial() { + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + if (workstationConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workstationConfigs_ = workstationConfigs_; + } else { + result.workstationConfigs_ = workstationConfigsBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.workstations.v1.ListUsableWorkstationConfigsResponse) { + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; + if (workstationConfigsBuilder_ == null) { + if (!other.workstationConfigs_.isEmpty()) { + if (workstationConfigs_.isEmpty()) { + workstationConfigs_ = other.workstationConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.addAll(other.workstationConfigs_); + } + onChanged(); + } + } else { + if (!other.workstationConfigs_.isEmpty()) { + if (workstationConfigsBuilder_.isEmpty()) { + workstationConfigsBuilder_.dispose(); + workstationConfigsBuilder_ = null; + workstationConfigs_ = other.workstationConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; + } else { + workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + 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: { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List workstationConfigs_ = + java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public java.util.List getWorkstationConfigsList() { + if (workstationConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workstationConfigs_); + } else { + return workstationConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public int getWorkstationConfigsCount() { + if (workstationConfigsBuilder_ == null) { + return workstationConfigs_.size(); + } else { + return workstationConfigsBuilder_.getCount(); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { + if (workstationConfigsBuilder_ == null) { + return workstationConfigs_.get(index); + } else { + return workstationConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder setWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.set(index, value); + onChanged(); + } else { + workstationConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder setWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + workstationConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(value); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(index, value); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs( + com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(builderForValue.build()); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addAllWorkstationConfigs( + java.lang.Iterable values) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); + onChanged(); + } else { + workstationConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder clearWorkstationConfigs() { + if (workstationConfigsBuilder_ == null) { + workstationConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workstationConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder removeWorkstationConfigs(int index) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.remove(index); + onChanged(); + } else { + workstationConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { + if (workstationConfigsBuilder_ == null) { + return workstationConfigs_.get(index); } else { + return workstationConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public java.util.List + getWorkstationConfigsOrBuilderList() { + if (workstationConfigsBuilder_ != null) { + return workstationConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workstationConfigs_); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public java.util.List + getWorkstationConfigsBuilderList() { + return getWorkstationConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + getWorkstationConfigsFieldBuilder() { + if (workstationConfigsBuilder_ == null) { + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workstationConfigs_ = null; + } + return workstationConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(); + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..edba880d6698 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListUsableWorkstationConfigsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + java.util.List + getWorkstationConfigsList(); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + int getWorkstationConfigsCount(); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + java.util.List + getWorkstationConfigsOrBuilderList(); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index); + + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java new file mode 100644 index 000000000000..eb0953cdfeb6 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java @@ -0,0 +1,826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for ListUsableWorkstations.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} + */ +public final class ListUsableWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsRequest) + ListUsableWorkstationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableWorkstationsRequest.newBuilder() to construct. + private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableWorkstationsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListUsableWorkstationsRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.workstations.v1.ListUsableWorkstationsRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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; + } + /** + *
+   * Request message for ListUsableWorkstations.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationsRequest) + com.google.cloud.workstations.v1.ListUsableWorkstationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest build() { + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest buildPartial() { + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.workstations.v1.ListUsableWorkstationsRequest) { + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(); + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java new file mode 100644 index 000000000000..0513ee615608 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListUsableWorkstationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java new file mode 100644 index 000000000000..d9525b052c5c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java @@ -0,0 +1,1266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Response message for ListUsableWorkstations.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} + */ +public final class ListUsableWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsResponse) + ListUsableWorkstationsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListUsableWorkstationsResponse.newBuilder() to construct. + private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListUsableWorkstationsResponse() { + workstations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListUsableWorkstationsResponse(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + } + + public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List workstations_; + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public java.util.List getWorkstationsList() { + return workstations_; + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public java.util.List + getWorkstationsOrBuilderList() { + return workstations_; + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public int getWorkstationsCount() { + return workstations_.size(); + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { + return workstations_.get(index); + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index) { + return workstations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(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 < workstations_.size(); i++) { + output.writeMessage(1, workstations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < workstations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.workstations.v1.ListUsableWorkstationsResponse)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; + + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) 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 (getWorkstationsCount() > 0) { + hash = (37 * hash) + WORKSTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for ListUsableWorkstations.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationsResponse) + com.google.cloud.workstations.v1.ListUsableWorkstationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (workstationsBuilder_ == null) { + workstations_ = java.util.Collections.emptyList(); + } else { + workstations_ = null; + workstationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse build() { + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse buildPartial() { + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + if (workstationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workstations_ = java.util.Collections.unmodifiableList(workstations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workstations_ = workstations_; + } else { + result.workstations_ = workstationsBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.workstations.v1.ListUsableWorkstationsResponse) { + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) return this; + if (workstationsBuilder_ == null) { + if (!other.workstations_.isEmpty()) { + if (workstations_.isEmpty()) { + workstations_ = other.workstations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkstationsIsMutable(); + workstations_.addAll(other.workstations_); + } + onChanged(); + } + } else { + if (!other.workstations_.isEmpty()) { + if (workstationsBuilder_.isEmpty()) { + workstationsBuilder_.dispose(); + workstationsBuilder_ = null; + workstations_ = other.workstations_; + bitField0_ = (bitField0_ & ~0x00000001); + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; + } else { + workstationsBuilder_.addAllMessages(other.workstations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + 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: { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List workstations_ = + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workstations_ = new java.util.ArrayList(workstations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; + + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public java.util.List getWorkstationsList() { + if (workstationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workstations_); + } else { + return workstationsBuilder_.getMessageList(); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public int getWorkstationsCount() { + if (workstationsBuilder_ == null) { + return workstations_.size(); + } else { + return workstationsBuilder_.getCount(); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { + if (workstationsBuilder_ == null) { + return workstations_.get(index); + } else { + return workstationsBuilder_.getMessage(index); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder setWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { + if (workstationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationsIsMutable(); + workstations_.set(index, value); + onChanged(); + } else { + workstationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder setWorkstations( + int index, com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.set(index, builderForValue.build()); + onChanged(); + } else { + workstationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation value) { + if (workstationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationsIsMutable(); + workstations_.add(value); + onChanged(); + } else { + workstationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { + if (workstationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationsIsMutable(); + workstations_.add(index, value); + onChanged(); + } else { + workstationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations( + com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(builderForValue.build()); + onChanged(); + } else { + workstationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations( + int index, com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(index, builderForValue.build()); + onChanged(); + } else { + workstationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addAllWorkstations( + java.lang.Iterable values) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); + onChanged(); + } else { + workstationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder clearWorkstations() { + if (workstationsBuilder_ == null) { + workstations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workstationsBuilder_.clear(); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder removeWorkstations(int index) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.remove(index); + onChanged(); + } else { + workstationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( + int index) { + return getWorkstationsFieldBuilder().getBuilder(index); + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index) { + if (workstationsBuilder_ == null) { + return workstations_.get(index); } else { + return workstationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public java.util.List + getWorkstationsOrBuilderList() { + if (workstationsBuilder_ != null) { + return workstationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workstations_); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( + int index) { + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public java.util.List + getWorkstationsBuilderList() { + return getWorkstationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + getWorkstationsFieldBuilder() { + if (workstationsBuilder_ == null) { + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workstations_ = null; + } + return workstationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(); + } + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java new file mode 100644 index 000000000000..cd01e585b84e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListUsableWorkstationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + java.util.List + getWorkstationsList(); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + com.google.cloud.workstations.v1.Workstation getWorkstations(int index); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + int getWorkstationsCount(); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + java.util.List + getWorkstationsOrBuilderList(); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index); + + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java new file mode 100644 index 000000000000..e77c16ef375a --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java @@ -0,0 +1,826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for ListWorkstationClusters.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} + */ +public final class ListWorkstationClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersRequest) + ListWorkstationClustersRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkstationClustersRequest.newBuilder() to construct. + private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkstationClustersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkstationClustersRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.workstations.v1.ListWorkstationClustersRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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; + } + /** + *
+   * Request message for ListWorkstationClusters.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationClustersRequest) + com.google.cloud.workstations.v1.ListWorkstationClustersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest build() { + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest buildPartial() { + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.workstations.v1.ListWorkstationClustersRequest) { + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) + private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(); + } + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java new file mode 100644 index 000000000000..b43b33e892b1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListWorkstationClustersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java new file mode 100644 index 000000000000..3d67cb482c29 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java @@ -0,0 +1,1266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Response message for ListWorkstationClusters.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} + */ +public final class ListWorkstationClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersResponse) + ListWorkstationClustersResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkstationClustersResponse.newBuilder() to construct. + private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkstationClustersResponse() { + workstationClusters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkstationClustersResponse(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + } + + public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List workstationClusters_; + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + @java.lang.Override + public java.util.List getWorkstationClustersList() { + return workstationClusters_; + } + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + @java.lang.Override + public java.util.List + getWorkstationClustersOrBuilderList() { + return workstationClusters_; + } + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + @java.lang.Override + public int getWorkstationClustersCount() { + return workstationClusters_.size(); + } + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { + return workstationClusters_.get(index); + } + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { + return workstationClusters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(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 < workstationClusters_.size(); i++) { + output.writeMessage(1, workstationClusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < workstationClusters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationClusters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.workstations.v1.ListWorkstationClustersResponse)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; + + if (!getWorkstationClustersList() + .equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) 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 (getWorkstationClustersCount() > 0) { + hash = (37 * hash) + WORKSTATION_CLUSTERS_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationClustersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for ListWorkstationClusters.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationClustersResponse) + com.google.cloud.workstations.v1.ListWorkstationClustersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (workstationClustersBuilder_ == null) { + workstationClusters_ = java.util.Collections.emptyList(); + } else { + workstationClusters_ = null; + workstationClustersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse build() { + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse buildPartial() { + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + if (workstationClustersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workstationClusters_ = workstationClusters_; + } else { + result.workstationClusters_ = workstationClustersBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.workstations.v1.ListWorkstationClustersResponse) { + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) return this; + if (workstationClustersBuilder_ == null) { + if (!other.workstationClusters_.isEmpty()) { + if (workstationClusters_.isEmpty()) { + workstationClusters_ = other.workstationClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkstationClustersIsMutable(); + workstationClusters_.addAll(other.workstationClusters_); + } + onChanged(); + } + } else { + if (!other.workstationClusters_.isEmpty()) { + if (workstationClustersBuilder_.isEmpty()) { + workstationClustersBuilder_.dispose(); + workstationClustersBuilder_ = null; + workstationClusters_ = other.workstationClusters_; + bitField0_ = (bitField0_ & ~0x00000001); + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationClustersFieldBuilder() : null; + } else { + workstationClustersBuilder_.addAllMessages(other.workstationClusters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + 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: { + com.google.cloud.workstations.v1.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List workstationClusters_ = + java.util.Collections.emptyList(); + private void ensureWorkstationClustersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workstationClusters_ = new java.util.ArrayList(workstationClusters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClustersBuilder_; + + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public java.util.List getWorkstationClustersList() { + if (workstationClustersBuilder_ == null) { + return java.util.Collections.unmodifiableList(workstationClusters_); + } else { + return workstationClustersBuilder_.getMessageList(); + } + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public int getWorkstationClustersCount() { + if (workstationClustersBuilder_ == null) { + return workstationClusters_.size(); + } else { + return workstationClustersBuilder_.getCount(); + } + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { + if (workstationClustersBuilder_ == null) { + return workstationClusters_.get(index); + } else { + return workstationClustersBuilder_.getMessage(index); + } + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder setWorkstationClusters( + int index, com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationClustersIsMutable(); + workstationClusters_.set(index, value); + onChanged(); + } else { + workstationClustersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder setWorkstationClusters( + int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.set(index, builderForValue.build()); + onChanged(); + } else { + workstationClustersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder addWorkstationClusters(com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(value); + onChanged(); + } else { + workstationClustersBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder addWorkstationClusters( + int index, com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClustersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(index, value); + onChanged(); + } else { + workstationClustersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder addWorkstationClusters( + com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(builderForValue.build()); + onChanged(); + } else { + workstationClustersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder addWorkstationClusters( + int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(index, builderForValue.build()); + onChanged(); + } else { + workstationClustersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder addAllWorkstationClusters( + java.lang.Iterable values) { + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationClusters_); + onChanged(); + } else { + workstationClustersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder clearWorkstationClusters() { + if (workstationClustersBuilder_ == null) { + workstationClusters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workstationClustersBuilder_.clear(); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public Builder removeWorkstationClusters(int index) { + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.remove(index); + onChanged(); + } else { + workstationClustersBuilder_.remove(index); + } + return this; + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClustersBuilder( + int index) { + return getWorkstationClustersFieldBuilder().getBuilder(index); + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { + if (workstationClustersBuilder_ == null) { + return workstationClusters_.get(index); } else { + return workstationClustersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public java.util.List + getWorkstationClustersOrBuilderList() { + if (workstationClustersBuilder_ != null) { + return workstationClustersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workstationClusters_); + } + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder( + int index) { + return getWorkstationClustersFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + } + /** + *
+     * The requested workstation clusters.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + public java.util.List + getWorkstationClustersBuilderList() { + return getWorkstationClustersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + getWorkstationClustersFieldBuilder() { + if (workstationClustersBuilder_ == null) { + workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + workstationClusters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workstationClusters_ = null; + } + return workstationClustersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) + private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(); + } + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java new file mode 100644 index 000000000000..532e1a47c5b1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListWorkstationClustersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + java.util.List + getWorkstationClustersList(); + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index); + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + int getWorkstationClustersCount(); + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + java.util.List + getWorkstationClustersOrBuilderList(); + /** + *
+   * The requested workstation clusters.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + */ + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index); + + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java new file mode 100644 index 000000000000..feea995d32c2 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java @@ -0,0 +1,826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for ListWorkstationConfigs.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} + */ +public final class ListWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsRequest) + ListWorkstationConfigsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkstationConfigsRequest.newBuilder() to construct. + private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkstationConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkstationConfigsRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.workstations.v1.ListWorkstationConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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; + } + /** + *
+   * Request message for ListWorkstationConfigs.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationConfigsRequest) + com.google.cloud.workstations.v1.ListWorkstationConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest build() { + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest buildPartial() { + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.workstations.v1.ListWorkstationConfigsRequest) { + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(); + } + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..b2435a60844e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListWorkstationConfigsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java new file mode 100644 index 000000000000..4dbdf624f582 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java @@ -0,0 +1,1266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Response message for ListWorkstationConfigs.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} + */ +public final class ListWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsResponse) + ListWorkstationConfigsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkstationConfigsResponse.newBuilder() to construct. + private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkstationConfigsResponse() { + workstationConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkstationConfigsResponse(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + } + + public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List workstationConfigs_; + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public java.util.List getWorkstationConfigsList() { + return workstationConfigs_; + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public java.util.List + getWorkstationConfigsOrBuilderList() { + return workstationConfigs_; + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public int getWorkstationConfigsCount() { + return workstationConfigs_.size(); + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { + return workstationConfigs_.get(index); + } + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { + return workstationConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(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 < workstationConfigs_.size(); i++) { + output.writeMessage(1, workstationConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < workstationConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.workstations.v1.ListWorkstationConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; + + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) 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 (getWorkstationConfigsCount() > 0) { + hash = (37 * hash) + WORKSTATION_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for ListWorkstationConfigs.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationConfigsResponse) + com.google.cloud.workstations.v1.ListWorkstationConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (workstationConfigsBuilder_ == null) { + workstationConfigs_ = java.util.Collections.emptyList(); + } else { + workstationConfigs_ = null; + workstationConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse build() { + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse buildPartial() { + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + if (workstationConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workstationConfigs_ = workstationConfigs_; + } else { + result.workstationConfigs_ = workstationConfigsBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.workstations.v1.ListWorkstationConfigsResponse) { + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) return this; + if (workstationConfigsBuilder_ == null) { + if (!other.workstationConfigs_.isEmpty()) { + if (workstationConfigs_.isEmpty()) { + workstationConfigs_ = other.workstationConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.addAll(other.workstationConfigs_); + } + onChanged(); + } + } else { + if (!other.workstationConfigs_.isEmpty()) { + if (workstationConfigsBuilder_.isEmpty()) { + workstationConfigsBuilder_.dispose(); + workstationConfigsBuilder_ = null; + workstationConfigs_ = other.workstationConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; + } else { + workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + 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: { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List workstationConfigs_ = + java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public java.util.List getWorkstationConfigsList() { + if (workstationConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workstationConfigs_); + } else { + return workstationConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public int getWorkstationConfigsCount() { + if (workstationConfigsBuilder_ == null) { + return workstationConfigs_.size(); + } else { + return workstationConfigsBuilder_.getCount(); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { + if (workstationConfigsBuilder_ == null) { + return workstationConfigs_.get(index); + } else { + return workstationConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder setWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.set(index, value); + onChanged(); + } else { + workstationConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder setWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + workstationConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(value); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(index, value); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs( + com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(builderForValue.build()); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addWorkstationConfigs( + int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + workstationConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder addAllWorkstationConfigs( + java.lang.Iterable values) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); + onChanged(); + } else { + workstationConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder clearWorkstationConfigs() { + if (workstationConfigsBuilder_ == null) { + workstationConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workstationConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public Builder removeWorkstationConfigs(int index) { + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.remove(index); + onChanged(); + } else { + workstationConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { + if (workstationConfigsBuilder_ == null) { + return workstationConfigs_.get(index); } else { + return workstationConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public java.util.List + getWorkstationConfigsOrBuilderList() { + if (workstationConfigsBuilder_ != null) { + return workstationConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workstationConfigs_); + } + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + } + /** + *
+     * The requested configs.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + public java.util.List + getWorkstationConfigsBuilderList() { + return getWorkstationConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + getWorkstationConfigsFieldBuilder() { + if (workstationConfigsBuilder_ == null) { + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workstationConfigs_ = null; + } + return workstationConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(); + } + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..2aebefd737b5 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListWorkstationConfigsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + java.util.List + getWorkstationConfigsList(); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + int getWorkstationConfigsCount(); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + java.util.List + getWorkstationConfigsOrBuilderList(); + /** + *
+   * The requested configs.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + */ + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index); + + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java new file mode 100644 index 000000000000..fecd741a5499 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java @@ -0,0 +1,826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for ListWorkstations.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} + */ +public final class ListWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsRequest) + ListWorkstationsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkstationsRequest.newBuilder() to construct. + private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkstationsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkstationsRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.workstations.v1.ListWorkstationsRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListWorkstationsRequest other = (com.google.cloud.workstations.v1.ListWorkstationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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; + } + /** + *
+   * Request message for ListWorkstations.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationsRequest) + com.google.cloud.workstations.v1.ListWorkstationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListWorkstationsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationsRequest build() { + com.google.cloud.workstations.v1.ListWorkstationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationsRequest buildPartial() { + com.google.cloud.workstations.v1.ListWorkstationsRequest result = new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.workstations.v1.ListWorkstationsRequest) { + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRequest other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString + getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Parent resource name.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Maximum number of items to return.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * next_page_token value returned from a previous List request, if any.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsRequest) + private static final com.google.cloud.workstations.v1.ListWorkstationsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsRequest(); + } + + public static com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListWorkstationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java new file mode 100644 index 000000000000..19481ea97967 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListWorkstationsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Parent resource name.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of items to return.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * next_page_token value returned from a previous List request, if any.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java new file mode 100644 index 000000000000..0be2dd59d8a2 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java @@ -0,0 +1,1266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Response message for ListWorkstations.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} + */ +public final class ListWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsResponse) + ListWorkstationsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkstationsResponse.newBuilder() to construct. + private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkstationsResponse() { + workstations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkstationsResponse(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + } + + public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List workstations_; + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public java.util.List getWorkstationsList() { + return workstations_; + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public java.util.List + getWorkstationsOrBuilderList() { + return workstations_; + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public int getWorkstationsCount() { + return workstations_.size(); + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { + return workstations_.get(index); + } + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index) { + return workstations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(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 < workstations_.size(); i++) { + output.writeMessage(1, workstations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(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 < workstations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + 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.workstations.v1.ListWorkstationsResponse)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.ListWorkstationsResponse other = (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; + + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) 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 (getWorkstationsCount() > 0) { + hash = (37 * hash) + WORKSTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response message for ListWorkstations.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationsResponse) + com.google.cloud.workstations.v1.ListWorkstationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.ListWorkstationsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (workstationsBuilder_ == null) { + workstations_ = java.util.Collections.emptyList(); + } else { + workstations_ = null; + workstationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationsResponse build() { + com.google.cloud.workstations.v1.ListWorkstationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.ListWorkstationsResponse buildPartial() { + com.google.cloud.workstations.v1.ListWorkstationsResponse result = new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationsResponse result) { + if (workstationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + workstations_ = java.util.Collections.unmodifiableList(workstations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workstations_ = workstations_; + } else { + result.workstations_ = workstationsBuilder_.build(); + } + if (((bitField0_ & 0x00000004) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unreachable_ = unreachable_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.workstations.v1.ListWorkstationsResponse) { + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsResponse other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) return this; + if (workstationsBuilder_ == null) { + if (!other.workstations_.isEmpty()) { + if (workstations_.isEmpty()) { + workstations_ = other.workstations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkstationsIsMutable(); + workstations_.addAll(other.workstations_); + } + onChanged(); + } + } else { + if (!other.workstations_.isEmpty()) { + if (workstationsBuilder_.isEmpty()) { + workstationsBuilder_.dispose(); + workstationsBuilder_ = null; + workstations_ = other.workstations_; + bitField0_ = (bitField0_ & ~0x00000001); + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; + } else { + workstationsBuilder_.addAllMessages(other.workstations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + 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: { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List workstations_ = + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + workstations_ = new java.util.ArrayList(workstations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; + + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public java.util.List getWorkstationsList() { + if (workstationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workstations_); + } else { + return workstationsBuilder_.getMessageList(); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public int getWorkstationsCount() { + if (workstationsBuilder_ == null) { + return workstations_.size(); + } else { + return workstationsBuilder_.getCount(); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { + if (workstationsBuilder_ == null) { + return workstations_.get(index); + } else { + return workstationsBuilder_.getMessage(index); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder setWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { + if (workstationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationsIsMutable(); + workstations_.set(index, value); + onChanged(); + } else { + workstationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder setWorkstations( + int index, com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.set(index, builderForValue.build()); + onChanged(); + } else { + workstationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation value) { + if (workstationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationsIsMutable(); + workstations_.add(value); + onChanged(); + } else { + workstationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { + if (workstationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkstationsIsMutable(); + workstations_.add(index, value); + onChanged(); + } else { + workstationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations( + com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(builderForValue.build()); + onChanged(); + } else { + workstationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addWorkstations( + int index, com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(index, builderForValue.build()); + onChanged(); + } else { + workstationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder addAllWorkstations( + java.lang.Iterable values) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); + onChanged(); + } else { + workstationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder clearWorkstations() { + if (workstationsBuilder_ == null) { + workstations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workstationsBuilder_.clear(); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public Builder removeWorkstations(int index) { + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.remove(index); + onChanged(); + } else { + workstationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( + int index) { + return getWorkstationsFieldBuilder().getBuilder(index); + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index) { + if (workstationsBuilder_ == null) { + return workstations_.get(index); } else { + return workstationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public java.util.List + getWorkstationsOrBuilderList() { + if (workstationsBuilder_ != null) { + return workstationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workstations_); + } + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( + int index) { + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + } + /** + *
+     * The requested workstations.
+     * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + public java.util.List + getWorkstationsBuilderList() { + return getWorkstationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + getWorkstationsFieldBuilder() { + if (workstationsBuilder_ == null) { + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + workstations_ = null; + } + return workstationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Unreachable resources.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsResponse) + private static final com.google.cloud.workstations.v1.ListWorkstationsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsResponse(); + } + + public static com.google.cloud.workstations.v1.ListWorkstationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.ListWorkstationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java new file mode 100644 index 000000000000..27db2718155e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java @@ -0,0 +1,116 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface ListWorkstationsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + java.util.List + getWorkstationsList(); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + com.google.cloud.workstations.v1.Workstation getWorkstations(int index); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + int getWorkstationsCount(); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + java.util.List + getWorkstationsOrBuilderList(); + /** + *
+   * The requested workstations.
+   * 
+ * + * repeated .google.cloud.workstations.v1.Workstation workstations = 1; + */ + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index); + + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Unreachable resources.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java new file mode 100644 index 000000000000..c57d1bb8e6c6 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * 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.workstations.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 LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java new file mode 100644 index 000000000000..dde0a919ed75 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java @@ -0,0 +1,1617 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Metadata for long-running operations.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} + */ +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.OperationMetadata) + OperationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Time that the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Time that the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Time that the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + *
+   * Output only. Time that the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+   * Output only. Time that the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+   * Output only. Time that the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + /** + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + /** + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + /** + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + 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(); + verb_ = s; + return s; + } + } + /** + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + /** + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + 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(); + statusMessage_ = s; + return s; + } + } + /** + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + /** + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + /** + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + 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(); + apiVersion_ = s; + return s; + } + } + /** + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + 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.workstations.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.OperationMetadata other = (com.google.cloud.workstations.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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; + } + /** + *
+   * Metadata for long-running operations.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.OperationMetadata) + com.google.cloud.workstations.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.OperationMetadata.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.OperationMetadata build() { + com.google.cloud.workstations.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { + com.google.cloud.workstations.v1.OperationMetadata result = new com.google.cloud.workstations.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + } + + @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.workstations.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.OperationMetadata other) { + if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + 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: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + 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_; + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. Time that the operation was created.
+     * 
+ * + * .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> + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+     * Output only. Time that the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + /** + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for target. + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + /** + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString + getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString + getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_ ; + /** + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + /** + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString + getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.OperationMetadata) + private static final com.google.cloud.workstations.v1.OperationMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.OperationMetadata(); + } + + public static com.google.cloud.workstations.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..ecae7415ff41 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,154 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface OperationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Time that the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Time that the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Time that the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Time that the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + *
+   * Output only. Time that the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + *
+   * Output only. Time that the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The target. + */ + java.lang.String getTarget(); + /** + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for target. + */ + com.google.protobuf.ByteString + getTargetBytes(); + + /** + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The verb. + */ + java.lang.String getVerb(); + /** + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for verb. + */ + com.google.protobuf.ByteString + getVerbBytes(); + + /** + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + /** + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString + getStatusMessageBytes(); + + /** + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + /** + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString + getApiVersionBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java new file mode 100644 index 000000000000..9bcc35830345 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for StartWorkstation.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} + */ +public final class StartWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StartWorkstationRequest) + StartWorkstationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StartWorkstationRequest.newBuilder() to construct. + private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StartWorkstationRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StartWorkstationRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the workstation to start.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the workstation to start.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + 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.workstations.v1.StartWorkstationRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.StartWorkstationRequest other = (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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; + } + /** + *
+   * Request message for StartWorkstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.StartWorkstationRequest) + com.google.cloud.workstations.v1.StartWorkstationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.StartWorkstationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + validateOnly_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.StartWorkstationRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.StartWorkstationRequest build() { + com.google.cloud.workstations.v1.StartWorkstationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.StartWorkstationRequest buildPartial() { + com.google.cloud.workstations.v1.StartWorkstationRequest result = new com.google.cloud.workstations.v1.StartWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.StartWorkstationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @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.workstations.v1.StartWorkstationRequest) { + return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.StartWorkstationRequest other) { + if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the workstation to start.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the workstation to start.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the workstation to start.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation to start.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation to start.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StartWorkstationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StartWorkstationRequest) + private static final com.google.cloud.workstations.v1.StartWorkstationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StartWorkstationRequest(); + } + + public static com.google.cloud.workstations.v1.StartWorkstationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.StartWorkstationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..10183779c369 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface StartWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StartWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workstation to start.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workstation to start.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java new file mode 100644 index 000000000000..3d3b1ed1ac80 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java @@ -0,0 +1,838 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for StopWorkstation.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} + */ +public final class StopWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StopWorkstationRequest) + StopWorkstationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StopWorkstationRequest.newBuilder() to construct. + private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopWorkstationRequest() { + name_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StopWorkstationRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Required. Name of the workstation to stop.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Name of the workstation to stop.
+   * 
+ * + * 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() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + 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.workstations.v1.StopWorkstationRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.StopWorkstationRequest other = (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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; + } + /** + *
+   * Request message for StopWorkstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.StopWorkstationRequest) + com.google.cloud.workstations.v1.StopWorkstationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.StopWorkstationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + validateOnly_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.StopWorkstationRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.StopWorkstationRequest build() { + com.google.cloud.workstations.v1.StopWorkstationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.StopWorkstationRequest buildPartial() { + com.google.cloud.workstations.v1.StopWorkstationRequest result = new com.google.cloud.workstations.v1.StopWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.StopWorkstationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + } + + @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.workstations.v1.StopWorkstationRequest) { + return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.StopWorkstationRequest other) { + if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Name of the workstation to stop.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Name of the workstation to stop.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Name of the workstation to stop.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation to stop.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Required. Name of the workstation to stop.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 2; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * If set, the request will be rejected if the latest version of the
+     * workstation on the server does not have this etag.
+     * 
+ * + * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StopWorkstationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StopWorkstationRequest) + private static final com.google.cloud.workstations.v1.StopWorkstationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StopWorkstationRequest(); + } + + public static com.google.cloud.workstations.v1.StopWorkstationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.StopWorkstationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..149be0ed836c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface StopWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StopWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workstation to stop.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workstation to stop.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 2; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * If set, the request will be rejected if the latest version of the
+   * workstation on the server does not have this etag.
+   * 
+ * + * string etag = 3; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java new file mode 100644 index 000000000000..022eadef1783 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java @@ -0,0 +1,1060 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for UpdateWorkstationCluster.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} + */ +public final class UpdateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) + UpdateWorkstationClusterRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateWorkstationClusterRequest.newBuilder() to construct. + private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateWorkstationClusterRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateWorkstationClusterRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + } + + public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; + private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; + /** + *
+   * Required. Workstation cluster to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationCluster field is set. + */ + @java.lang.Override + public boolean hasWorkstationCluster() { + return workstationCluster_ != null; + } + /** + *
+   * Required. Workstation cluster to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationCluster. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } + /** + *
+   * Required. Workstation cluster to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. Mask that specifies which fields in the workstation cluster
+   * should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. Mask that specifies which fields in the workstation cluster
+   * should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. Mask that specifies which fields in the workstation cluster
+   * should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 4; + private boolean allowMissing_ = false; + /** + *
+   * If set, and the workstation cluster is not found, a new workstation
+   * cluster will be created. In this situation, update_mask is ignored.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + 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 (workstationCluster_ != null) { + output.writeMessage(1, getWorkstationCluster()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (allowMissing_ != false) { + output.writeBool(4, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workstationCluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationCluster()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); + } + 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.workstations.v1.UpdateWorkstationClusterRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; + + if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; + if (hasWorkstationCluster()) { + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) 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 (hasWorkstationCluster()) { + hash = (37 * hash) + WORKSTATION_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationCluster().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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; + } + /** + *
+   * Request message for UpdateWorkstationCluster.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workstationCluster_ = null; + if (workstationClusterBuilder_ != null) { + workstationClusterBuilder_.dispose(); + workstationClusterBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + validateOnly_ = false; + allowMissing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest build() { + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest buildPartial() { + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + + @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.workstations.v1.UpdateWorkstationClusterRequest) { + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; + if (other.hasWorkstationCluster()) { + mergeWorkstationCluster(other.getWorkstationCluster()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + 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: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationCluster field is set. + */ + public boolean hasWorkstationCluster() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationCluster. + */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { + if (workstationClusterBuilder_ == null) { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } else { + return workstationClusterBuilder_.getMessage(); + } + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workstationCluster_ = value; + } else { + workstationClusterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { + if (workstationClusterBuilder_ == null) { + workstationCluster_ = builderForValue.build(); + } else { + workstationClusterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + if (workstationClusterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + getWorkstationClusterBuilder().mergeFrom(value); + } else { + workstationCluster_ = value; + } + } else { + workstationClusterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearWorkstationCluster() { + bitField0_ = (bitField0_ & ~0x00000001); + workstationCluster_ = null; + if (workstationClusterBuilder_ != null) { + workstationClusterBuilder_.dispose(); + workstationClusterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkstationClusterFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + if (workstationClusterBuilder_ != null) { + return workstationClusterBuilder_.getMessageOrBuilder(); + } else { + return workstationCluster_ == null ? + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + } + } + /** + *
+     * Required. Workstation cluster to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + getWorkstationClusterFieldBuilder() { + if (workstationClusterBuilder_ == null) { + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); + workstationCluster_ = null; + } + return workstationClusterBuilder_; + } + + 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_; + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .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_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Required. Mask that specifies which fields in the workstation cluster
+     * should be updated.
+     * 
+ * + * .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> + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean allowMissing_ ; + /** + *
+     * If set, and the workstation cluster is not found, a new workstation
+     * cluster will be created. In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + *
+     * If set, and the workstation cluster is not found, a new workstation
+     * cluster will be created. In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, and the workstation cluster is not found, a new workstation
+     * cluster will be created. In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000008); + allowMissing_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) + private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(); + } + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..d76f0de32bd0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,88 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface UpdateWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Workstation cluster to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationCluster field is set. + */ + boolean hasWorkstationCluster(); + /** + *
+   * Required. Workstation cluster to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationCluster. + */ + com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); + /** + *
+   * Required. Workstation cluster to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); + + /** + *
+   * Required. Mask that specifies which fields in the workstation cluster
+   * should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Mask that specifies which fields in the workstation cluster
+   * should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Mask that specifies which fields in the workstation cluster
+   * should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, and the workstation cluster is not found, a new workstation
+   * cluster will be created. In this situation, update_mask is ignored.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java new file mode 100644 index 000000000000..716709e643da --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java @@ -0,0 +1,1048 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for UpdateWorkstationConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} + */ +public final class UpdateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) + UpdateWorkstationConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateWorkstationConfigRequest.newBuilder() to construct. + private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateWorkstationConfigRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateWorkstationConfigRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + } + + public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; + /** + *
+   * Required. Config to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationConfig field is set. + */ + @java.lang.Override + public boolean hasWorkstationConfig() { + return workstationConfig_ != null; + } + /** + *
+   * Required. Config to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfig. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } + /** + *
+   * Required. Config to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 4; + private boolean allowMissing_ = false; + /** + *
+   * If set, and the config is not found, a new config will be created.
+   * In this situation, update_mask is ignored.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + 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 (workstationConfig_ != null) { + output.writeMessage(1, getWorkstationConfig()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (allowMissing_ != false) { + output.writeBool(4, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workstationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationConfig()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); + } + 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.workstations.v1.UpdateWorkstationConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; + + if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; + if (hasWorkstationConfig()) { + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) 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 (hasWorkstationConfig()) { + hash = (37 * hash) + WORKSTATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getWorkstationConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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; + } + /** + *
+   * Request message for UpdateWorkstationConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workstationConfig_ = null; + if (workstationConfigBuilder_ != null) { + workstationConfigBuilder_.dispose(); + workstationConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + validateOnly_ = false; + allowMissing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest build() { + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest buildPartial() { + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + + @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.workstations.v1.UpdateWorkstationConfigRequest) { + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; + if (other.hasWorkstationConfig()) { + mergeWorkstationConfig(other.getWorkstationConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + 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: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationConfig field is set. + */ + public boolean hasWorkstationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfig. + */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { + if (workstationConfigBuilder_ == null) { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } else { + return workstationConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workstationConfig_ = value; + } else { + workstationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstationConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { + if (workstationConfigBuilder_ == null) { + workstationConfig_ = builderForValue.build(); + } else { + workstationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + if (workstationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + getWorkstationConfigBuilder().mergeFrom(value); + } else { + workstationConfig_ = value; + } + } else { + workstationConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearWorkstationConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + workstationConfig_ = null; + if (workstationConfigBuilder_ != null) { + workstationConfigBuilder_.dispose(); + workstationConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkstationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + if (workstationConfigBuilder_ != null) { + return workstationConfigBuilder_.getMessageOrBuilder(); + } else { + return workstationConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + } + } + /** + *
+     * Required. Config to update.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + getWorkstationConfigFieldBuilder() { + if (workstationConfigBuilder_ == null) { + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); + workstationConfig_ = null; + } + return workstationConfigBuilder_; + } + + 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_; + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .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_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .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> + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean allowMissing_ ; + /** + *
+     * If set, and the config is not found, a new config will be created.
+     * In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + *
+     * If set, and the config is not found, a new config will be created.
+     * In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, and the config is not found, a new config will be created.
+     * In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000008); + allowMissing_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) + private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(); + } + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..7c8a310bd78e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface UpdateWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Config to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstationConfig field is set. + */ + boolean hasWorkstationConfig(); + /** + *
+   * Required. Config to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstationConfig. + */ + com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); + /** + *
+   * Required. Config to update.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); + + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, and the config is not found, a new config will be created.
+   * In this situation, update_mask is ignored.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java new file mode 100644 index 000000000000..3cc503a76edb --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java @@ -0,0 +1,1048 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * Request message for UpdateWorkstation.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} + */ +public final class UpdateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationRequest) + UpdateWorkstationRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateWorkstationRequest.newBuilder() to construct. + private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateWorkstationRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateWorkstationRequest(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + } + + public static final int WORKSTATION_FIELD_NUMBER = 1; + private com.google.cloud.workstations.v1.Workstation workstation_; + /** + *
+   * Required. Workstation to update.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstation field is set. + */ + @java.lang.Override + public boolean hasWorkstation() { + return workstation_ != null; + } + /** + *
+   * Required. Workstation to update.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstation. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation getWorkstation() { + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } + /** + *
+   * Required. Workstation to update.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 4; + private boolean allowMissing_ = false; + /** + *
+   * If set, and the config is not found, a new config will be created.
+   * In this situation, update_mask is ignored.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + 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 (workstation_ != null) { + output.writeMessage(1, getWorkstation()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (allowMissing_ != false) { + output.writeBool(4, allowMissing_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workstation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstation()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); + } + 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.workstations.v1.UpdateWorkstationRequest)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; + + if (hasWorkstation() != other.hasWorkstation()) return false; + if (hasWorkstation()) { + if (!getWorkstation() + .equals(other.getWorkstation())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) 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 (hasWorkstation()) { + hash = (37 * hash) + WORKSTATION_FIELD_NUMBER; + hash = (53 * hash) + getWorkstation().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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; + } + /** + *
+   * Request message for UpdateWorkstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.UpdateWorkstationRequest) + com.google.cloud.workstations.v1.UpdateWorkstationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.UpdateWorkstationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workstation_ = null; + if (workstationBuilder_ != null) { + workstationBuilder_.dispose(); + workstationBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + validateOnly_ = false; + allowMissing_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationRequest build() { + com.google.cloud.workstations.v1.UpdateWorkstationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() { + com.google.cloud.workstations.v1.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowMissing_ = allowMissing_; + } + } + + @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.workstations.v1.UpdateWorkstationRequest) { + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationRequest other) { + if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) return this; + if (other.hasWorkstation()) { + mergeWorkstation(other.getWorkstation()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + 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: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.cloud.workstations.v1.Workstation workstation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstation field is set. + */ + public boolean hasWorkstation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstation. + */ + public com.google.cloud.workstations.v1.Workstation getWorkstation() { + if (workstationBuilder_ == null) { + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } else { + return workstationBuilder_.getMessage(); + } + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { + if (workstationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workstation_ = value; + } else { + workstationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setWorkstation( + com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { + if (workstationBuilder_ == null) { + workstation_ = builderForValue.build(); + } else { + workstationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { + if (workstationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + getWorkstationBuilder().mergeFrom(value); + } else { + workstation_ = value; + } + } else { + workstationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearWorkstation() { + bitField0_ = (bitField0_ & ~0x00000001); + workstation_ = null; + if (workstationBuilder_ != null) { + workstationBuilder_.dispose(); + workstationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWorkstationFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { + if (workstationBuilder_ != null) { + return workstationBuilder_.getMessageOrBuilder(); + } else { + return workstation_ == null ? + com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + } + } + /** + *
+     * Required. Workstation to update.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + getWorkstationFieldBuilder() { + if (workstationBuilder_ == null) { + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); + workstation_ = null; + } + return workstationBuilder_; + } + + 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_; + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .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_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Required. Mask specifying which fields in the config should be updated.
+     * 
+ * + * .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> + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private boolean validateOnly_ ; + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * If set, validate the request and preview the review, but do not actually
+     * apply it.
+     * 
+ * + * bool validate_only = 3; + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean allowMissing_ ; + /** + *
+     * If set, and the config is not found, a new config will be created.
+     * In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + *
+     * If set, and the config is not found, a new config will be created.
+     * In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * If set, and the config is not found, a new config will be created.
+     * In this situation, update_mask is ignored.
+     * 
+ * + * bool allow_missing = 4; + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000008); + allowMissing_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) + private static final com.google.cloud.workstations.v1.UpdateWorkstationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(); + } + + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.UpdateWorkstationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..b43ac0bc6628 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface UpdateWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Workstation to update.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the workstation field is set. + */ + boolean hasWorkstation(); + /** + *
+   * Required. Workstation to update.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The workstation. + */ + com.google.cloud.workstations.v1.Workstation getWorkstation(); + /** + *
+   * Required. Workstation to update.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); + + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Mask specifying which fields in the config should be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * If set, validate the request and preview the review, but do not actually
+   * apply it.
+   * 
+ * + * bool validate_only = 3; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * If set, and the config is not found, a new config will be created.
+   * In this situation, update_mask is ignored.
+   * 
+ * + * bool allow_missing = 4; + * @return The allowMissing. + */ + boolean getAllowMissing(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java new file mode 100644 index 000000000000..961bc92e88fb --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java @@ -0,0 +1,2979 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * A single instance of a developer workstation with its own persistent storage.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.Workstation} + */ +public final class Workstation extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.Workstation) + WorkstationOrBuilder { +private static final long serialVersionUID = 0L; + // Use Workstation.newBuilder() to construct. + private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Workstation() { + name_ = ""; + displayName_ = ""; + uid_ = ""; + etag_ = ""; + state_ = 0; + host_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Workstation(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 13: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); + } + + /** + *
+   * Whether a workstation is running and ready to receive user requests.
+   * 
+ * + * Protobuf enum {@code google.cloud.workstations.v1.Workstation.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Do not use.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * The workstation is not yet ready to accept requests from users but will
+     * be soon.
+     * 
+ * + * STATE_STARTING = 1; + */ + STATE_STARTING(1), + /** + *
+     * The workstation is ready to accept requests from users.
+     * 
+ * + * STATE_RUNNING = 2; + */ + STATE_RUNNING(2), + /** + *
+     * The workstation is being stopped.
+     * 
+ * + * STATE_STOPPING = 3; + */ + STATE_STOPPING(3), + /** + *
+     * The workstation is stopped and will not be able to receive requests until
+     * it is started.
+     * 
+ * + * STATE_STOPPED = 4; + */ + STATE_STOPPED(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Do not use.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The workstation is not yet ready to accept requests from users but will
+     * be soon.
+     * 
+ * + * STATE_STARTING = 1; + */ + public static final int STATE_STARTING_VALUE = 1; + /** + *
+     * The workstation is ready to accept requests from users.
+     * 
+ * + * STATE_RUNNING = 2; + */ + public static final int STATE_RUNNING_VALUE = 2; + /** + *
+     * The workstation is being stopped.
+     * 
+ * + * STATE_STOPPING = 3; + */ + public static final int STATE_STOPPING_VALUE = 3; + /** + *
+     * The workstation is stopped and will not be able to receive requests until
+     * it is started.
+     * 
+ * + * STATE_STOPPED = 4; + */ + public static final int STATE_STOPPED_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: return STATE_UNSPECIFIED; + case 1: return STATE_STARTING; + case 2: return STATE_RUNNING; + case 3: return STATE_STOPPING; + case 4: return STATE_STOPPED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workstations.v1.Workstation.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.workstations.v1.Workstation.State) + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + @java.lang.Override + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECONCILING_FIELD_NUMBER = 4; + private boolean reconciling_ = false; + /** + *
+   * Output only. Indicates whether this resource is currently being updated to
+   * match its intended state.
+   * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 13; + 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + 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 labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp deleteTime_; + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 10; + private int state_ = 0; + /** + *
+   * Output only. Current state of the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+   * Output only. Current state of the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { + com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; + } + + public static final int HOST_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + *
+   * Output only. Host to which clients can send HTTPS traffic that will be
+   * received by the workstation. Authorized traffic will be received to the
+   * workstation as HTTP on port 80. To send traffic to a different port,
+   * clients may prefix the host with the destination port in the format
+   * `{port}-{host}`.
+   * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The host. + */ + @java.lang.Override + public java.lang.String getHost() { + java.lang.Object ref = host_; + 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(); + host_ = s; + return s; + } + } + /** + *
+   * Output only. Host to which clients can send HTTPS traffic that will be
+   * received by the workstation. Authorized traffic will be received to the
+   * workstation as HTTP on port 80. To send traffic to a different port,
+   * clients may prefix the host with the destination port in the format
+   * `{port}-{host}`.
+   * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for host. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + } + if (reconciling_ != false) { + output.writeBool(4, reconciling_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(8, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 13); + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_); + } + 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(13, labels__); + } + 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.workstations.v1.Workstation)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.Workstation other = (com.google.cloud.workstations.v1.Workstation) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (state_ != other.state_) return false; + if (!getHost() + .equals(other.getHost())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.Workstation parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.Workstation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.Workstation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.Workstation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.Workstation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation 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 single instance of a developer workstation with its own persistent storage.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.Workstation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.Workstation) + com.google.cloud.workstations.v1.WorkstationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 13: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + case 13: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.Workstation.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + uid_ = ""; + reconciling_ = false; + internalGetMutableAnnotations().clear(); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + etag_ = ""; + state_ = 0; + host_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.Workstation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation build() { + com.google.cloud.workstations.v1.Workstation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation buildPartial() { + com.google.cloud.workstations.v1.Workstation result = new com.google.cloud.workstations.v1.Workstation(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.host_ = host_; + } + } + + @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.workstations.v1.Workstation) { + return mergeFrom((com.google.cloud.workstations.v1.Workstation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.Workstation other) { + if (other == com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000800; + onChanged(); + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 80 + case 90: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 106: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean reconciling_ ; + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000008); + reconciling_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + 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 labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + 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"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 13; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000100); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private int state_ = 0; + /** + *
+     * Output only. Current state of the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+     * Output only. Current state of the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Output only. Current state of the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation.State getState() { + com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; + } + /** + *
+     * Output only. Current state of the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.workstations.v1.Workstation.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. Current state of the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000400); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + *
+     * Output only. Host to which clients can send HTTPS traffic that will be
+     * received by the workstation. Authorized traffic will be received to the
+     * workstation as HTTP on port 80. To send traffic to a different port,
+     * clients may prefix the host with the destination port in the format
+     * `{port}-{host}`.
+     * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The host. + */ + public java.lang.String getHost() { + java.lang.Object ref = host_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + host_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. Host to which clients can send HTTPS traffic that will be
+     * received by the workstation. Authorized traffic will be received to the
+     * workstation as HTTP on port 80. To send traffic to a different port,
+     * clients may prefix the host with the destination port in the format
+     * `{port}-{host}`.
+     * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for host. + */ + public com.google.protobuf.ByteString + getHostBytes() { + java.lang.Object ref = host_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + host_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Host to which clients can send HTTPS traffic that will be
+     * received by the workstation. Authorized traffic will be received to the
+     * workstation as HTTP on port 80. To send traffic to a different port,
+     * clients may prefix the host with the destination port in the format
+     * `{port}-{host}`.
+     * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The host to set. + * @return This builder for chaining. + */ + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + host_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Output only. Host to which clients can send HTTPS traffic that will be
+     * received by the workstation. Authorized traffic will be received to the
+     * workstation as HTTP on port 80. To send traffic to a different port,
+     * clients may prefix the host with the destination port in the format
+     * `{port}-{host}`.
+     * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + *
+     * Output only. Host to which clients can send HTTPS traffic that will be
+     * received by the workstation. Authorized traffic will be received to the
+     * workstation as HTTP on port 80. To send traffic to a different port,
+     * clients may prefix the host with the destination port in the format
+     * `{port}-{host}`.
+     * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for host to set. + * @return This builder for chaining. + */ + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + host_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.Workstation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.Workstation) + private static final com.google.cloud.workstations.v1.Workstation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.Workstation(); + } + + public static com.google.cloud.workstations.v1.Workstation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.Workstation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java new file mode 100644 index 000000000000..11099e2beac2 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java @@ -0,0 +1,4859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * A grouping of workstation configurations and the associated workstations
+ *  in that region.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster} + */ +public final class WorkstationCluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster) + WorkstationClusterOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkstationCluster.newBuilder() to construct. + private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkstationCluster() { + name_ = ""; + displayName_ = ""; + uid_ = ""; + etag_ = ""; + network_ = ""; + subnetwork_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkstationCluster(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 15: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class); + } + + public interface PrivateClusterConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Immutable. Whether Workstations endpoint is private.
+     * 
+ * + * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The enablePrivateEndpoint. + */ + boolean getEnablePrivateEndpoint(); + + /** + *
+     * Output only. Hostname for the workstation cluster. This field will be
+     * populated only when private endpoint is enabled. To access workstations
+     * in the cluster, create a new DNS zone mapping this domain name to an
+     * internal IP address and a forwarding rule mapping that address to the
+     * service attachment.
+     * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterHostname. + */ + java.lang.String getClusterHostname(); + /** + *
+     * Output only. Hostname for the workstation cluster. This field will be
+     * populated only when private endpoint is enabled. To access workstations
+     * in the cluster, create a new DNS zone mapping this domain name to an
+     * internal IP address and a forwarding rule mapping that address to the
+     * service attachment.
+     * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for clusterHostname. + */ + com.google.protobuf.ByteString + getClusterHostnameBytes(); + + /** + *
+     * Output only. Service attachment URI for the workstation cluster. The
+     * service attachemnt is created when private endpoint is enabled. To access
+     * workstations in the cluster, configure access to the managed service
+     * using [Private Service
+     * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+     * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The serviceAttachmentUri. + */ + java.lang.String getServiceAttachmentUri(); + /** + *
+     * Output only. Service attachment URI for the workstation cluster. The
+     * service attachemnt is created when private endpoint is enabled. To access
+     * workstations in the cluster, configure access to the managed service
+     * using [Private Service
+     * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+     * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for serviceAttachmentUri. + */ + com.google.protobuf.ByteString + getServiceAttachmentUriBytes(); + + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @return A list containing the allowedProjects. + */ + java.util.List + getAllowedProjectsList(); + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @return The count of allowedProjects. + */ + int getAllowedProjectsCount(); + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @param index The index of the element to return. + * @return The allowedProjects at the given index. + */ + java.lang.String getAllowedProjects(int index); + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @param index The index of the value to return. + * @return The bytes of the allowedProjects at the given index. + */ + com.google.protobuf.ByteString + getAllowedProjectsBytes(int index); + } + /** + *
+   * Configuration options for private clusters.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} + */ + public static final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) + PrivateClusterConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateClusterConfig.newBuilder() to construct. + private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrivateClusterConfig() { + clusterHostname_ = ""; + serviceAttachmentUri_ = ""; + allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateClusterConfig(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; + private boolean enablePrivateEndpoint_ = false; + /** + *
+     * Immutable. Whether Workstations endpoint is private.
+     * 
+ * + * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + + public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object clusterHostname_ = ""; + /** + *
+     * Output only. Hostname for the workstation cluster. This field will be
+     * populated only when private endpoint is enabled. To access workstations
+     * in the cluster, create a new DNS zone mapping this domain name to an
+     * internal IP address and a forwarding rule mapping that address to the
+     * service attachment.
+     * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterHostname. + */ + @java.lang.Override + public java.lang.String getClusterHostname() { + java.lang.Object ref = clusterHostname_; + 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(); + clusterHostname_ = s; + return s; + } + } + /** + *
+     * Output only. Hostname for the workstation cluster. This field will be
+     * populated only when private endpoint is enabled. To access workstations
+     * in the cluster, create a new DNS zone mapping this domain name to an
+     * internal IP address and a forwarding rule mapping that address to the
+     * service attachment.
+     * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for clusterHostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getClusterHostnameBytes() { + java.lang.Object ref = clusterHostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterHostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAttachmentUri_ = ""; + /** + *
+     * Output only. Service attachment URI for the workstation cluster. The
+     * service attachemnt is created when private endpoint is enabled. To access
+     * workstations in the cluster, configure access to the managed service
+     * using [Private Service
+     * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+     * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The serviceAttachmentUri. + */ + @java.lang.Override + public java.lang.String getServiceAttachmentUri() { + java.lang.Object ref = serviceAttachmentUri_; + 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(); + serviceAttachmentUri_ = s; + return s; + } + } + /** + *
+     * Output only. Service attachment URI for the workstation cluster. The
+     * service attachemnt is created when private endpoint is enabled. To access
+     * workstations in the cluster, configure access to the managed service
+     * using [Private Service
+     * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+     * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for serviceAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { + java.lang.Object ref = serviceAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList allowedProjects_; + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @return A list containing the allowedProjects. + */ + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { + return allowedProjects_; + } + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @return The count of allowedProjects. + */ + public int getAllowedProjectsCount() { + return allowedProjects_.size(); + } + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @param index The index of the element to return. + * @return The allowedProjects at the given index. + */ + public java.lang.String getAllowedProjects(int index) { + return allowedProjects_.get(index); + } + /** + *
+     * Additional projects that are allowed to attach to the workstation
+     * cluster's service attachment. By default, the workstation cluster's
+     * project and the VPC host project (if different) are allowed.
+     * 
+ * + * repeated string allowed_projects = 4; + * @param index The index of the value to return. + * @return The bytes of the allowedProjects at the given index. + */ + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { + return allowedProjects_.getByteString(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 (enablePrivateEndpoint_ != false) { + output.writeBool(1, enablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterHostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAttachmentUri_); + } + for (int i = 0; i < allowedProjects_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allowedProjects_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePrivateEndpoint_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePrivateEndpoint_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachmentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAttachmentUri_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedProjects_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedProjects_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedProjectsList().size(); + } + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; + + if (getEnablePrivateEndpoint() + != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname() + .equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri() + .equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList() + .equals(other.getAllowedProjectsList())) 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) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateEndpoint()); + hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getClusterHostname().hashCode(); + hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getServiceAttachmentUri().hashCode(); + if (getAllowedProjectsCount() > 0) { + hash = (37 * hash) + ALLOWED_PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedProjectsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig 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; + } + /** + *
+     * Configuration options for private clusters.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePrivateEndpoint_ = false; + clusterHostname_ = ""; + serviceAttachmentUri_ = ""; + allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig build() { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { + if (((bitField0_ & 0x00000008) != 0)) { + allowedProjects_ = allowedProjects_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.allowedProjects_ = allowedProjects_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateEndpoint_ = enablePrivateEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterHostname_ = clusterHostname_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAttachmentUri_ = serviceAttachmentUri_; + } + } + + @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.workstations.v1.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; + if (other.getEnablePrivateEndpoint() != false) { + setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); + } + if (!other.getClusterHostname().isEmpty()) { + clusterHostname_ = other.clusterHostname_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getServiceAttachmentUri().isEmpty()) { + serviceAttachmentUri_ = other.serviceAttachmentUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.allowedProjects_.isEmpty()) { + if (allowedProjects_.isEmpty()) { + allowedProjects_ = other.allowedProjects_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAllowedProjectsIsMutable(); + allowedProjects_.addAll(other.allowedProjects_); + } + onChanged(); + } + 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 8: { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enablePrivateEndpoint_ ; + /** + *
+       * Immutable. Whether Workstations endpoint is private.
+       * 
+ * + * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The enablePrivateEndpoint. + */ + @java.lang.Override + public boolean getEnablePrivateEndpoint() { + return enablePrivateEndpoint_; + } + /** + *
+       * Immutable. Whether Workstations endpoint is private.
+       * 
+ * + * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The enablePrivateEndpoint to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateEndpoint(boolean value) { + + enablePrivateEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Immutable. Whether Workstations endpoint is private.
+       * 
+ * + * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearEnablePrivateEndpoint() { + bitField0_ = (bitField0_ & ~0x00000001); + enablePrivateEndpoint_ = false; + onChanged(); + return this; + } + + private java.lang.Object clusterHostname_ = ""; + /** + *
+       * Output only. Hostname for the workstation cluster. This field will be
+       * populated only when private endpoint is enabled. To access workstations
+       * in the cluster, create a new DNS zone mapping this domain name to an
+       * internal IP address and a forwarding rule mapping that address to the
+       * service attachment.
+       * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The clusterHostname. + */ + public java.lang.String getClusterHostname() { + java.lang.Object ref = clusterHostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterHostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Output only. Hostname for the workstation cluster. This field will be
+       * populated only when private endpoint is enabled. To access workstations
+       * in the cluster, create a new DNS zone mapping this domain name to an
+       * internal IP address and a forwarding rule mapping that address to the
+       * service attachment.
+       * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for clusterHostname. + */ + public com.google.protobuf.ByteString + getClusterHostnameBytes() { + java.lang.Object ref = clusterHostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterHostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Output only. Hostname for the workstation cluster. This field will be
+       * populated only when private endpoint is enabled. To access workstations
+       * in the cluster, create a new DNS zone mapping this domain name to an
+       * internal IP address and a forwarding rule mapping that address to the
+       * service attachment.
+       * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The clusterHostname to set. + * @return This builder for chaining. + */ + public Builder setClusterHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + clusterHostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Output only. Hostname for the workstation cluster. This field will be
+       * populated only when private endpoint is enabled. To access workstations
+       * in the cluster, create a new DNS zone mapping this domain name to an
+       * internal IP address and a forwarding rule mapping that address to the
+       * service attachment.
+       * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearClusterHostname() { + clusterHostname_ = getDefaultInstance().getClusterHostname(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Output only. Hostname for the workstation cluster. This field will be
+       * populated only when private endpoint is enabled. To access workstations
+       * in the cluster, create a new DNS zone mapping this domain name to an
+       * internal IP address and a forwarding rule mapping that address to the
+       * service attachment.
+       * 
+ * + * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for clusterHostname to set. + * @return This builder for chaining. + */ + public Builder setClusterHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clusterHostname_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object serviceAttachmentUri_ = ""; + /** + *
+       * Output only. Service attachment URI for the workstation cluster. The
+       * service attachemnt is created when private endpoint is enabled. To access
+       * workstations in the cluster, configure access to the managed service
+       * using [Private Service
+       * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+       * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The serviceAttachmentUri. + */ + public java.lang.String getServiceAttachmentUri() { + java.lang.Object ref = serviceAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Output only. Service attachment URI for the workstation cluster. The
+       * service attachemnt is created when private endpoint is enabled. To access
+       * workstations in the cluster, configure access to the managed service
+       * using [Private Service
+       * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+       * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for serviceAttachmentUri. + */ + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { + java.lang.Object ref = serviceAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Output only. Service attachment URI for the workstation cluster. The
+       * service attachemnt is created when private endpoint is enabled. To access
+       * workstations in the cluster, configure access to the managed service
+       * using [Private Service
+       * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+       * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The serviceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + serviceAttachmentUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Output only. Service attachment URI for the workstation cluster. The
+       * service attachemnt is created when private endpoint is enabled. To access
+       * workstations in the cluster, configure access to the managed service
+       * using [Private Service
+       * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+       * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearServiceAttachmentUri() { + serviceAttachmentUri_ = getDefaultInstance().getServiceAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Output only. Service attachment URI for the workstation cluster. The
+       * service attachemnt is created when private endpoint is enabled. To access
+       * workstations in the cluster, configure access to the managed service
+       * using [Private Service
+       * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
+       * 
+ * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for serviceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setServiceAttachmentUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + serviceAttachmentUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedProjectsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @return A list containing the allowedProjects. + */ + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { + return allowedProjects_.getUnmodifiableView(); + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @return The count of allowedProjects. + */ + public int getAllowedProjectsCount() { + return allowedProjects_.size(); + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @param index The index of the element to return. + * @return The allowedProjects at the given index. + */ + public java.lang.String getAllowedProjects(int index) { + return allowedProjects_.get(index); + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @param index The index of the value to return. + * @return The bytes of the allowedProjects at the given index. + */ + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { + return allowedProjects_.getByteString(index); + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @param index The index to set the value at. + * @param value The allowedProjects to set. + * @return This builder for chaining. + */ + public Builder setAllowedProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAllowedProjectsIsMutable(); + allowedProjects_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @param value The allowedProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(value); + onChanged(); + return this; + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @param values The allowedProjects to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedProjects( + java.lang.Iterable values) { + ensureAllowedProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedProjects_); + onChanged(); + return this; + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @return This builder for chaining. + */ + public Builder clearAllowedProjects() { + allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * Additional projects that are allowed to attach to the workstation
+       * cluster's service attachment. By default, the workstation cluster's
+       * project and the VPC host project (if different) are allowed.
+       * 
+ * + * repeated string allowed_projects = 4; + * @param value The bytes of the allowedProjects to add. + * @return This builder for chaining. + */ + public Builder addAllowedProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) + private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); + } + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + @java.lang.Override + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECONCILING_FIELD_NUMBER = 4; + private boolean reconciling_ = false; + /** + *
+   * Output only. Indicates whether this resource is currently being updated to
+   * match its intended state.
+   * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 15; + 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + 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 labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp deleteTime_; + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + *
+   * Immutable. Name of the Compute Engine network in which instances associated
+   * with this cluster will be created.
+   * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + 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(); + network_ = s; + return s; + } + } + /** + *
+   * Immutable. Name of the Compute Engine network in which instances associated
+   * with this cluster will be created.
+   * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object subnetwork_ = ""; + /** + *
+   * Immutable. Name of the Compute Engine subnetwork in which instances
+   * associated with this cluster will be created. Must be part of the
+   * subnetwork specified for this cluster.
+   * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The subnetwork. + */ + @java.lang.Override + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + 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(); + subnetwork_ = s; + return s; + } + } + /** + *
+   * Immutable. Name of the Compute Engine subnetwork in which instances
+   * associated with this cluster will be created. Must be part of the
+   * subnetwork specified for this cluster.
+   * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for subnetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * @return Whether the privateClusterConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateClusterConfig() { + return privateClusterConfig_ != null; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * @return The privateClusterConfig. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + + public static final int DEGRADED_FIELD_NUMBER = 13; + private boolean degraded_ = false; + /** + *
+   * Output only. Whether this resource is in degraded mode, in which case it
+   * may require user action to restore full functionality. Details can be found
+   * in the `conditions` field.
+   * 
+ * + * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The degraded. + */ + @java.lang.Override + public boolean getDegraded() { + return degraded_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private java.util.List conditions_; + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.Status getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + } + if (reconciling_ != false) { + output.writeBool(4, reconciling_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(8, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); + } + if (privateClusterConfig_ != null) { + output.writeMessage(12, getPrivateClusterConfig()); + } + if (degraded_ != false) { + output.writeBool(13, degraded_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(14, conditions_.get(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 15); + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetwork_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); + } + if (privateClusterConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getPrivateClusterConfig()); + } + if (degraded_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, degraded_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, conditions_.get(i)); + } + 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(15, labels__); + } + 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.workstations.v1.WorkstationCluster)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationCluster other = (com.google.cloud.workstations.v1.WorkstationCluster) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; + if (hasPrivateClusterConfig()) { + if (!getPrivateClusterConfig() + .equals(other.getPrivateClusterConfig())) return false; + } + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + if (hasPrivateClusterConfig()) { + hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateClusterConfig().hashCode(); + } + hash = (37 * hash) + DEGRADED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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 grouping of workstation configurations and the associated workstations
+   *  in that region.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationCluster) + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 15: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + case 15: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationCluster.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + uid_ = ""; + reconciling_ = false; + internalGetMutableAnnotations().clear(); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + etag_ = ""; + network_ = ""; + subnetwork_ = ""; + privateClusterConfig_ = null; + if (privateClusterConfigBuilder_ != null) { + privateClusterConfigBuilder_.dispose(); + privateClusterConfigBuilder_ = null; + } + degraded_ = false; + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster build() { + com.google.cloud.workstations.v1.WorkstationCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationCluster buildPartial() { + com.google.cloud.workstations.v1.WorkstationCluster result = new com.google.cloud.workstations.v1.WorkstationCluster(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationCluster result) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.subnetwork_ = subnetwork_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.privateClusterConfig_ = privateClusterConfigBuilder_ == null + ? privateClusterConfig_ + : privateClusterConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.degraded_ = degraded_; + } + } + + @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.workstations.v1.WorkstationCluster) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster other) { + if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getSubnetwork().isEmpty()) { + subnetwork_ = other.subnetwork_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasPrivateClusterConfig()) { + mergePrivateClusterConfig(other.getPrivateClusterConfig()); + } + if (other.getDegraded() != false) { + setDegraded(other.getDegraded()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00004000); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: { + subnetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: { + input.readMessage( + getPrivateClusterConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 104: { + degraded_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: { + com.google.rpc.Status m = + input.readMessage( + com.google.rpc.Status.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean reconciling_ ; + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000008); + reconciling_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + 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 labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + 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"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 15; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000100); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + *
+     * Immutable. Name of the Compute Engine network in which instances associated
+     * with this cluster will be created.
+     * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. Name of the Compute Engine network in which instances associated
+     * with this cluster will be created.
+     * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for network. + */ + public com.google.protobuf.ByteString + getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. Name of the Compute Engine network in which instances associated
+     * with this cluster will be created.
+     * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + network_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Immutable. Name of the Compute Engine network in which instances associated
+     * with this cluster will be created.
+     * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + *
+     * Immutable. Name of the Compute Engine network in which instances associated
+     * with this cluster will be created.
+     * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object subnetwork_ = ""; + /** + *
+     * Immutable. Name of the Compute Engine subnetwork in which instances
+     * associated with this cluster will be created. Must be part of the
+     * subnetwork specified for this cluster.
+     * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. Name of the Compute Engine subnetwork in which instances
+     * associated with this cluster will be created. Must be part of the
+     * subnetwork specified for this cluster.
+     * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString + getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. Name of the Compute Engine subnetwork in which instances
+     * associated with this cluster will be created. Must be part of the
+     * subnetwork specified for this cluster.
+     * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subnetwork_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Immutable. Name of the Compute Engine subnetwork in which instances
+     * associated with this cluster will be created. Must be part of the
+     * subnetwork specified for this cluster.
+     * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + subnetwork_ = getDefaultInstance().getSubnetwork(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + *
+     * Immutable. Name of the Compute Engine subnetwork in which instances
+     * associated with this cluster will be created. Must be part of the
+     * subnetwork specified for this cluster.
+     * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subnetwork_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * @return Whether the privateClusterConfig field is set. + */ + public boolean hasPrivateClusterConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * @return The privateClusterConfig. + */ + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + if (privateClusterConfigBuilder_ == null) { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } else { + return privateClusterConfigBuilder_.getMessage(); + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateClusterConfig_ = value; + } else { + privateClusterConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + public Builder setPrivateClusterConfig( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfig_ = builderForValue.build(); + } else { + privateClusterConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + if (privateClusterConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + privateClusterConfig_ != null && + privateClusterConfig_ != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { + getPrivateClusterConfigBuilder().mergeFrom(value); + } else { + privateClusterConfig_ = value; + } + } else { + privateClusterConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + public Builder clearPrivateClusterConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + privateClusterConfig_ = null; + if (privateClusterConfigBuilder_ != null) { + privateClusterConfigBuilder_.dispose(); + privateClusterConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getPrivateClusterConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + if (privateClusterConfigBuilder_ != null) { + return privateClusterConfigBuilder_.getMessageOrBuilder(); + } else { + return privateClusterConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + } + } + /** + *
+     * Configuration for private cluster.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> + getPrivateClusterConfigFieldBuilder() { + if (privateClusterConfigBuilder_ == null) { + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); + privateClusterConfig_ = null; + } + return privateClusterConfigBuilder_; + } + + private boolean degraded_ ; + /** + *
+     * Output only. Whether this resource is in degraded mode, in which case it
+     * may require user action to restore full functionality. Details can be found
+     * in the `conditions` field.
+     * 
+ * + * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The degraded. + */ + @java.lang.Override + public boolean getDegraded() { + return degraded_; + } + /** + *
+     * Output only. Whether this resource is in degraded mode, in which case it
+     * may require user action to restore full functionality. Details can be found
+     * in the `conditions` field.
+     * 
+ * + * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The degraded to set. + * @return This builder for chaining. + */ + public Builder setDegraded(boolean value) { + + degraded_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + *
+     * Output only. Whether this resource is in degraded mode, in which case it
+     * may require user action to restore full functionality. Details can be found
+     * in the `conditions` field.
+     * 
+ * + * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearDegraded() { + bitField0_ = (bitField0_ & ~0x00002000); + degraded_ = false; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.rpc.Status value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions(com.google.rpc.Status value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.rpc.Status value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @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.workstations.v1.WorkstationCluster) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster) + private static final com.google.cloud.workstations.v1.WorkstationCluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster(); + } + + public static com.google.cloud.workstations.v1.WorkstationCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java new file mode 100644 index 000000000000..3a46a7e8477d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java @@ -0,0 +1,231 @@ +/* + * 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.workstations.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 WorkstationClusterName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_WORKSTATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String workstationCluster; + + @Deprecated + protected WorkstationClusterName() { + project = null; + location = null; + workstationCluster = null; + } + + private WorkstationClusterName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + workstationCluster = Preconditions.checkNotNull(builder.getWorkstationCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getWorkstationCluster() { + return workstationCluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static WorkstationClusterName of( + String project, String location, String workstationCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setWorkstationCluster(workstationCluster) + .build(); + } + + public static String format(String project, String location, String workstationCluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setWorkstationCluster(workstationCluster) + .build() + .toString(); + } + + public static WorkstationClusterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_WORKSTATION_CLUSTER.validatedMatch( + formattedString, "WorkstationClusterName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("workstation_cluster")); + } + + 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 (WorkstationClusterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_WORKSTATION_CLUSTER.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); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (workstationCluster != null) { + fieldMapBuilder.put("workstation_cluster", workstationCluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_WORKSTATION_CLUSTER.instantiate( + "project", project, "location", location, "workstation_cluster", workstationCluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + WorkstationClusterName that = ((WorkstationClusterName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.workstationCluster, that.workstationCluster); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(workstationCluster); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}. + */ + public static class Builder { + private String project; + private String location; + private String workstationCluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getWorkstationCluster() { + return workstationCluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setWorkstationCluster(String workstationCluster) { + this.workstationCluster = workstationCluster; + return this; + } + + private Builder(WorkstationClusterName workstationClusterName) { + this.project = workstationClusterName.project; + this.location = workstationClusterName.location; + this.workstationCluster = workstationClusterName.workstationCluster; + } + + public WorkstationClusterName build() { + return new WorkstationClusterName(this); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java new file mode 100644 index 000000000000..194ccd92cd35 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java @@ -0,0 +1,425 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface WorkstationClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + java.lang.String getUid(); + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + com.google.protobuf.ByteString + getUidBytes(); + + /** + *
+   * Output only. Indicates whether this resource is currently being updated to
+   * match its intended state.
+   * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + boolean getReconciling(); + + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + int getAnnotationsCount(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + int getLabelsCount(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 15; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Immutable. Name of the Compute Engine network in which instances associated
+   * with this cluster will be created.
+   * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The network. + */ + java.lang.String getNetwork(); + /** + *
+   * Immutable. Name of the Compute Engine network in which instances associated
+   * with this cluster will be created.
+   * 
+ * + * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for network. + */ + com.google.protobuf.ByteString + getNetworkBytes(); + + /** + *
+   * Immutable. Name of the Compute Engine subnetwork in which instances
+   * associated with this cluster will be created. Must be part of the
+   * subnetwork specified for this cluster.
+   * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The subnetwork. + */ + java.lang.String getSubnetwork(); + /** + *
+   * Immutable. Name of the Compute Engine subnetwork in which instances
+   * associated with this cluster will be created. Must be part of the
+   * subnetwork specified for this cluster.
+   * 
+ * + * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for subnetwork. + */ + com.google.protobuf.ByteString + getSubnetworkBytes(); + + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * @return Whether the privateClusterConfig field is set. + */ + boolean hasPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * @return The privateClusterConfig. + */ + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); + /** + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + */ + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + + /** + *
+   * Output only. Whether this resource is in degraded mode, in which case it
+   * may require user action to restore full functionality. Details can be found
+   * in the `conditions` field.
+   * 
+ * + * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The degraded. + */ + boolean getDegraded(); + + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsList(); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.Status getConditions(int index); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getConditionsCount(); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java new file mode 100644 index 000000000000..7de38d6d9bc0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java @@ -0,0 +1,13808 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +/** + *
+ * A set of configuration options describing how a workstation will be run.
+ * Workstation configurations are intended to be shared across multiple
+ * workstations.
+ * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig} + */ +public final class WorkstationConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig) + WorkstationConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use WorkstationConfig.newBuilder() to construct. + private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkstationConfig() { + name_ = ""; + displayName_ = ""; + uid_ = ""; + etag_ = ""; + persistentDirectories_ = java.util.Collections.emptyList(); + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new WorkstationConfig(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 18: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class); + } + + public interface HostOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Specifies a Compute Engine instance as the host.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * @return Whether the gceInstance field is set. + */ + boolean hasGceInstance(); + /** + *
+     * Specifies a Compute Engine instance as the host.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * @return The gceInstance. + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance(); + /** + *
+     * Specifies a Compute Engine instance as the host.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); + + public com.google.cloud.workstations.v1.WorkstationConfig.Host.ConfigCase getConfigCase(); + } + /** + *
+   * Runtime host for a workstation.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} + */ + public static final class Host extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host) + HostOrBuilder { + private static final long serialVersionUID = 0L; + // Use Host.newBuilder() to construct. + private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Host() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Host(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + } + + public interface GceInstanceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The name of a Compute Engine machine type.
+       * 
+ * + * string machine_type = 1; + * @return The machineType. + */ + java.lang.String getMachineType(); + /** + *
+       * The name of a Compute Engine machine type.
+       * 
+ * + * string machine_type = 1; + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString + getMachineTypeBytes(); + + /** + *
+       * Email address of the service account that will be used on VM instances
+       * used to support this config. If not set, VMs will run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image, otherwise the image
+       * must be publicly accessible.
+       * 
+ * + * string service_account = 2; + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + *
+       * Email address of the service account that will be used on VM instances
+       * used to support this config. If not set, VMs will run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image, otherwise the image
+       * must be publicly accessible.
+       * 
+ * + * string service_account = 2; + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString + getServiceAccountBytes(); + + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @return A list containing the tags. + */ + java.util.List + getTagsList(); + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @return The count of tags. + */ + int getTagsCount(); + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + + /** + *
+       * Number of instances to pool for faster workstation starup.
+       * 
+ * + * int32 pool_size = 5; + * @return The poolSize. + */ + int getPoolSize(); + + /** + *
+       * Whether instances have no public IP address.
+       * 
+ * + * bool disable_public_ip_addresses = 6; + * @return The disablePublicIpAddresses. + */ + boolean getDisablePublicIpAddresses(); + + /** + *
+       * Whether to enable nested virtualization on instances.
+       * 
+ * + * bool enable_nested_virtualization = 7; + * @return The enableNestedVirtualization. + */ + boolean getEnableNestedVirtualization(); + + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * @return Whether the shieldedInstanceConfig field is set. + */ + boolean hasShieldedInstanceConfig(); + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * @return The shieldedInstanceConfig. + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * @return Whether the confidentialInstanceConfig field is set. + */ + boolean hasConfidentialInstanceConfig(); + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * @return The confidentialInstanceConfig. + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + + /** + *
+       * Size of the boot disk in GB. Defaults to 50.
+       * 
+ * + * int32 boot_disk_size_gb = 9; + * @return The bootDiskSizeGb. + */ + int getBootDiskSizeGb(); + } + /** + *
+     * A runtime using a Compute Engine instance.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} + */ + public static final class GceInstance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + GceInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GceInstance.newBuilder() to construct. + private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GceInstance() { + machineType_ = ""; + serviceAccount_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GceInstance(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + } + + public interface GceShieldedInstanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Whether the instance has Secure Boot enabled.
+         * 
+ * + * bool enable_secure_boot = 1; + * @return The enableSecureBoot. + */ + boolean getEnableSecureBoot(); + + /** + *
+         * Whether the instance has the vTPM enabled.
+         * 
+ * + * bool enable_vtpm = 2; + * @return The enableVtpm. + */ + boolean getEnableVtpm(); + + /** + *
+         * Whether the instance has integrity monitoring enabled.
+         * 
+ * + * bool enable_integrity_monitoring = 3; + * @return The enableIntegrityMonitoring. + */ + boolean getEnableIntegrityMonitoring(); + } + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + */ + public static final class GceShieldedInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) + GceShieldedInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GceShieldedInstanceConfig.newBuilder() to construct. + private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GceShieldedInstanceConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GceShieldedInstanceConfig(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + } + + public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; + private boolean enableSecureBoot_ = false; + /** + *
+         * Whether the instance has Secure Boot enabled.
+         * 
+ * + * bool enable_secure_boot = 1; + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + + public static final int ENABLE_VTPM_FIELD_NUMBER = 2; + private boolean enableVtpm_ = false; + /** + *
+         * Whether the instance has the vTPM enabled.
+         * 
+ * + * bool enable_vtpm = 2; + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + + public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; + private boolean enableIntegrityMonitoring_ = false; + /** + *
+         * Whether the instance has integrity monitoring enabled.
+         * 
+ * + * bool enable_integrity_monitoring = 3; + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + 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 (enableSecureBoot_ != false) { + output.writeBool(1, enableSecureBoot_); + } + if (enableVtpm_ != false) { + output.writeBool(2, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(3, enableIntegrityMonitoring_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSecureBoot_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSecureBoot_); + } + if (enableVtpm_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableVtpm_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableIntegrityMonitoring_); + } + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; + + if (getEnableSecureBoot() + != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() + != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() + != other.getEnableIntegrityMonitoring()) 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) + ENABLE_SECURE_BOOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSecureBoot()); + hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVtpm()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableIntegrityMonitoring()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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 set of Compute Engine Shielded instance options.
+         * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableSecureBoot_ = false; + enableVtpm_ = false; + enableIntegrityMonitoring_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSecureBoot_ = enableSecureBoot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableVtpm_ = enableVtpm_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_; + } + } + + @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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; + if (other.getEnableSecureBoot() != false) { + setEnableSecureBoot(other.getEnableSecureBoot()); + } + if (other.getEnableVtpm() != false) { + setEnableVtpm(other.getEnableVtpm()); + } + if (other.getEnableIntegrityMonitoring() != false) { + setEnableIntegrityMonitoring(other.getEnableIntegrityMonitoring()); + } + 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 8: { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enableSecureBoot_ ; + /** + *
+           * Whether the instance has Secure Boot enabled.
+           * 
+ * + * bool enable_secure_boot = 1; + * @return The enableSecureBoot. + */ + @java.lang.Override + public boolean getEnableSecureBoot() { + return enableSecureBoot_; + } + /** + *
+           * Whether the instance has Secure Boot enabled.
+           * 
+ * + * bool enable_secure_boot = 1; + * @param value The enableSecureBoot to set. + * @return This builder for chaining. + */ + public Builder setEnableSecureBoot(boolean value) { + + enableSecureBoot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+           * Whether the instance has Secure Boot enabled.
+           * 
+ * + * bool enable_secure_boot = 1; + * @return This builder for chaining. + */ + public Builder clearEnableSecureBoot() { + bitField0_ = (bitField0_ & ~0x00000001); + enableSecureBoot_ = false; + onChanged(); + return this; + } + + private boolean enableVtpm_ ; + /** + *
+           * Whether the instance has the vTPM enabled.
+           * 
+ * + * bool enable_vtpm = 2; + * @return The enableVtpm. + */ + @java.lang.Override + public boolean getEnableVtpm() { + return enableVtpm_; + } + /** + *
+           * Whether the instance has the vTPM enabled.
+           * 
+ * + * bool enable_vtpm = 2; + * @param value The enableVtpm to set. + * @return This builder for chaining. + */ + public Builder setEnableVtpm(boolean value) { + + enableVtpm_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+           * Whether the instance has the vTPM enabled.
+           * 
+ * + * bool enable_vtpm = 2; + * @return This builder for chaining. + */ + public Builder clearEnableVtpm() { + bitField0_ = (bitField0_ & ~0x00000002); + enableVtpm_ = false; + onChanged(); + return this; + } + + private boolean enableIntegrityMonitoring_ ; + /** + *
+           * Whether the instance has integrity monitoring enabled.
+           * 
+ * + * bool enable_integrity_monitoring = 3; + * @return The enableIntegrityMonitoring. + */ + @java.lang.Override + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + /** + *
+           * Whether the instance has integrity monitoring enabled.
+           * 
+ * + * bool enable_integrity_monitoring = 3; + * @param value The enableIntegrityMonitoring to set. + * @return This builder for chaining. + */ + public Builder setEnableIntegrityMonitoring(boolean value) { + + enableIntegrityMonitoring_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+           * Whether the instance has integrity monitoring enabled.
+           * 
+ * + * bool enable_integrity_monitoring = 3; + * @return This builder for chaining. + */ + public Builder clearEnableIntegrityMonitoring() { + bitField0_ = (bitField0_ & ~0x00000004); + enableIntegrityMonitoring_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GceConfidentialInstanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Whether the instance has confidential compute enabled.
+         * 
+ * + * bool enable_confidential_compute = 1; + * @return The enableConfidentialCompute. + */ + boolean getEnableConfidentialCompute(); + } + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + */ + public static final class GceConfidentialInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) + GceConfidentialInstanceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GceConfidentialInstanceConfig.newBuilder() to construct. + private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GceConfidentialInstanceConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GceConfidentialInstanceConfig(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + } + + public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; + private boolean enableConfidentialCompute_ = false; + /** + *
+         * Whether the instance has confidential compute enabled.
+         * 
+ * + * bool enable_confidential_compute = 1; + * @return The enableConfidentialCompute. + */ + @java.lang.Override + public boolean getEnableConfidentialCompute() { + return enableConfidentialCompute_; + } + + 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 (enableConfidentialCompute_ != false) { + output.writeBool(1, enableConfidentialCompute_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableConfidentialCompute_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableConfidentialCompute_); + } + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; + + if (getEnableConfidentialCompute() + != other.getEnableConfidentialCompute()) 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) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConfidentialCompute()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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 set of Compute Engine Confidential VM instance options.
+         * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableConfidentialCompute_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableConfidentialCompute_ = enableConfidentialCompute_; + } + } + + @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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; + if (other.getEnableConfidentialCompute() != false) { + setEnableConfidentialCompute(other.getEnableConfidentialCompute()); + } + 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 8: { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean enableConfidentialCompute_ ; + /** + *
+           * Whether the instance has confidential compute enabled.
+           * 
+ * + * bool enable_confidential_compute = 1; + * @return The enableConfidentialCompute. + */ + @java.lang.Override + public boolean getEnableConfidentialCompute() { + return enableConfidentialCompute_; + } + /** + *
+           * Whether the instance has confidential compute enabled.
+           * 
+ * + * bool enable_confidential_compute = 1; + * @param value The enableConfidentialCompute to set. + * @return This builder for chaining. + */ + public Builder setEnableConfidentialCompute(boolean value) { + + enableConfidentialCompute_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+           * Whether the instance has confidential compute enabled.
+           * 
+ * + * bool enable_confidential_compute = 1; + * @return This builder for chaining. + */ + public Builder clearEnableConfidentialCompute() { + bitField0_ = (bitField0_ & ~0x00000001); + enableConfidentialCompute_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + /** + *
+       * The name of a Compute Engine machine type.
+       * 
+ * + * string machine_type = 1; + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + 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(); + machineType_ = s; + return s; + } + } + /** + *
+       * The name of a Compute Engine machine type.
+       * 
+ * + * string machine_type = 1; + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccount_ = ""; + /** + *
+       * Email address of the service account that will be used on VM instances
+       * used to support this config. If not set, VMs will run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image, otherwise the image
+       * must be publicly accessible.
+       * 
+ * + * string service_account = 2; + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + 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(); + serviceAccount_ = s; + return s; + } + } + /** + *
+       * Email address of the service account that will be used on VM instances
+       * used to support this config. If not set, VMs will run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image, otherwise the image
+       * must be publicly accessible.
+       * 
+ * + * string service_account = 2; + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList tags_; + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+       * Network tags to add to the Compute Engine machines backing the
+       * Workstations.
+       * 
+ * + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int POOL_SIZE_FIELD_NUMBER = 5; + private int poolSize_ = 0; + /** + *
+       * Number of instances to pool for faster workstation starup.
+       * 
+ * + * int32 pool_size = 5; + * @return The poolSize. + */ + @java.lang.Override + public int getPoolSize() { + return poolSize_; + } + + public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; + private boolean disablePublicIpAddresses_ = false; + /** + *
+       * Whether instances have no public IP address.
+       * 
+ * + * bool disable_public_ip_addresses = 6; + * @return The disablePublicIpAddresses. + */ + @java.lang.Override + public boolean getDisablePublicIpAddresses() { + return disablePublicIpAddresses_; + } + + public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 7; + private boolean enableNestedVirtualization_ = false; + /** + *
+       * Whether to enable nested virtualization on instances.
+       * 
+ * + * bool enable_nested_virtualization = 7; + * @return The enableNestedVirtualization. + */ + @java.lang.Override + public boolean getEnableNestedVirtualization() { + return enableNestedVirtualization_; + } + + public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * @return Whether the shieldedInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * @return The shieldedInstanceConfig. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + /** + *
+       * A set of Compute Engine Shielded instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + + public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * @return Whether the confidentialInstanceConfig field is set. + */ + @java.lang.Override + public boolean hasConfidentialInstanceConfig() { + return confidentialInstanceConfig_ != null; + } + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * @return The confidentialInstanceConfig. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + } + /** + *
+       * A set of Compute Engine Confidential VM instance options.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + } + + public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; + private int bootDiskSizeGb_ = 0; + /** + *
+       * Size of the boot disk in GB. Defaults to 50.
+       * 
+ * + * int32 boot_disk_size_gb = 9; + * @return The bootDiskSizeGb. + */ + @java.lang.Override + public int getBootDiskSizeGb() { + return bootDiskSizeGb_; + } + + 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(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); + } + if (poolSize_ != 0) { + output.writeInt32(5, poolSize_); + } + if (disablePublicIpAddresses_ != false) { + output.writeBool(6, disablePublicIpAddresses_); + } + if (enableNestedVirtualization_ != false) { + output.writeBool(7, enableNestedVirtualization_); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(8, getShieldedInstanceConfig()); + } + if (bootDiskSizeGb_ != 0) { + output.writeInt32(9, bootDiskSizeGb_); + } + if (confidentialInstanceConfig_ != null) { + output.writeMessage(10, getConfidentialInstanceConfig()); + } + 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(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + if (poolSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, poolSize_); + } + if (disablePublicIpAddresses_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, disablePublicIpAddresses_); + } + if (enableNestedVirtualization_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableNestedVirtualization_); + } + if (shieldedInstanceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getShieldedInstanceConfig()); + } + if (bootDiskSizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, bootDiskSizeGb_); + } + if (confidentialInstanceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getConfidentialInstanceConfig()); + } + 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.workstations.v1.WorkstationConfig.Host.GceInstance)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (getPoolSize() + != other.getPoolSize()) return false; + if (getDisablePublicIpAddresses() + != other.getDisablePublicIpAddresses()) return false; + if (getEnableNestedVirtualization() + != other.getEnableNestedVirtualization()) return false; + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig() + .equals(other.getShieldedInstanceConfig())) return false; + } + if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; + if (hasConfidentialInstanceConfig()) { + if (!getConfidentialInstanceConfig() + .equals(other.getConfidentialInstanceConfig())) return false; + } + if (getBootDiskSizeGb() + != other.getBootDiskSizeGb()) 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) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (37 * hash) + POOL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPoolSize(); + hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisablePublicIpAddresses()); + hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableNestedVirtualization()); + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } + if (hasConfidentialInstanceConfig()) { + hash = (37 * hash) + CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfidentialInstanceConfig().hashCode(); + } + hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getBootDiskSizeGb(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance 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 runtime using a Compute Engine instance.
+       * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineType_ = ""; + serviceAccount_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + poolSize_ = 0; + disablePublicIpAddresses_ = false; + enableNestedVirtualization_ = false; + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + confidentialInstanceConfig_ = null; + if (confidentialInstanceConfigBuilder_ != null) { + confidentialInstanceConfigBuilder_.dispose(); + confidentialInstanceConfigBuilder_ = null; + } + bootDiskSizeGb_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { + if (((bitField0_ & 0x00000004) != 0)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tags_ = tags_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAccount_ = serviceAccount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.poolSize_ = poolSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.disablePublicIpAddresses_ = disablePublicIpAddresses_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enableNestedVirtualization_ = enableNestedVirtualization_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.bootDiskSizeGb_ = bootDiskSizeGb_; + } + } + + @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.workstations.v1.WorkstationConfig.Host.GceInstance) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (other.getPoolSize() != 0) { + setPoolSize(other.getPoolSize()); + } + if (other.getDisablePublicIpAddresses() != false) { + setDisablePublicIpAddresses(other.getDisablePublicIpAddresses()); + } + if (other.getEnableNestedVirtualization() != false) { + setEnableNestedVirtualization(other.getEnableNestedVirtualization()); + } + if (other.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } + if (other.hasConfidentialInstanceConfig()) { + mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); + } + if (other.getBootDiskSizeGb() != 0) { + setBootDiskSizeGb(other.getBootDiskSizeGb()); + } + 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: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object machineType_ = ""; + /** + *
+         * The name of a Compute Engine machine type.
+         * 
+ * + * string machine_type = 1; + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * The name of a Compute Engine machine type.
+         * 
+ * + * string machine_type = 1; + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString + getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * The name of a Compute Engine machine type.
+         * 
+ * + * string machine_type = 1; + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + machineType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The name of a Compute Engine machine type.
+         * 
+ * + * string machine_type = 1; + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+         * The name of a Compute Engine machine type.
+         * 
+ * + * string machine_type = 1; + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + machineType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object serviceAccount_ = ""; + /** + *
+         * Email address of the service account that will be used on VM instances
+         * used to support this config. If not set, VMs will run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image, otherwise the image
+         * must be publicly accessible.
+         * 
+ * + * string service_account = 2; + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Email address of the service account that will be used on VM instances
+         * used to support this config. If not set, VMs will run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image, otherwise the image
+         * must be publicly accessible.
+         * 
+ * + * string service_account = 2; + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString + getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Email address of the service account that will be used on VM instances
+         * used to support this config. If not set, VMs will run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image, otherwise the image
+         * must be publicly accessible.
+         * 
+ * + * string service_account = 2; + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + serviceAccount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Email address of the service account that will be used on VM instances
+         * used to support this config. If not set, VMs will run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image, otherwise the image
+         * must be publicly accessible.
+         * 
+ * + * string service_account = 2; + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + serviceAccount_ = getDefaultInstance().getServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * Email address of the service account that will be used on VM instances
+         * used to support this config. If not set, VMs will run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image, otherwise the image
+         * must be publicly accessible.
+         * 
+ * + * string service_account = 2; + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + serviceAccount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000004; + } + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * Network tags to add to the Compute Engine machines backing the
+         * Workstations.
+         * 
+ * + * repeated string tags = 4; + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + + private int poolSize_ ; + /** + *
+         * Number of instances to pool for faster workstation starup.
+         * 
+ * + * int32 pool_size = 5; + * @return The poolSize. + */ + @java.lang.Override + public int getPoolSize() { + return poolSize_; + } + /** + *
+         * Number of instances to pool for faster workstation starup.
+         * 
+ * + * int32 pool_size = 5; + * @param value The poolSize to set. + * @return This builder for chaining. + */ + public Builder setPoolSize(int value) { + + poolSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Number of instances to pool for faster workstation starup.
+         * 
+ * + * int32 pool_size = 5; + * @return This builder for chaining. + */ + public Builder clearPoolSize() { + bitField0_ = (bitField0_ & ~0x00000008); + poolSize_ = 0; + onChanged(); + return this; + } + + private boolean disablePublicIpAddresses_ ; + /** + *
+         * Whether instances have no public IP address.
+         * 
+ * + * bool disable_public_ip_addresses = 6; + * @return The disablePublicIpAddresses. + */ + @java.lang.Override + public boolean getDisablePublicIpAddresses() { + return disablePublicIpAddresses_; + } + /** + *
+         * Whether instances have no public IP address.
+         * 
+ * + * bool disable_public_ip_addresses = 6; + * @param value The disablePublicIpAddresses to set. + * @return This builder for chaining. + */ + public Builder setDisablePublicIpAddresses(boolean value) { + + disablePublicIpAddresses_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * Whether instances have no public IP address.
+         * 
+ * + * bool disable_public_ip_addresses = 6; + * @return This builder for chaining. + */ + public Builder clearDisablePublicIpAddresses() { + bitField0_ = (bitField0_ & ~0x00000010); + disablePublicIpAddresses_ = false; + onChanged(); + return this; + } + + private boolean enableNestedVirtualization_ ; + /** + *
+         * Whether to enable nested virtualization on instances.
+         * 
+ * + * bool enable_nested_virtualization = 7; + * @return The enableNestedVirtualization. + */ + @java.lang.Override + public boolean getEnableNestedVirtualization() { + return enableNestedVirtualization_; + } + /** + *
+         * Whether to enable nested virtualization on instances.
+         * 
+ * + * bool enable_nested_virtualization = 7; + * @param value The enableNestedVirtualization to set. + * @return This builder for chaining. + */ + public Builder setEnableNestedVirtualization(boolean value) { + + enableNestedVirtualization_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+         * Whether to enable nested virtualization on instances.
+         * 
+ * + * bool enable_nested_virtualization = 7; + * @return This builder for chaining. + */ + public Builder clearEnableNestedVirtualization() { + bitField0_ = (bitField0_ & ~0x00000020); + enableNestedVirtualization_ = false; + onChanged(); + return this; + } + + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * @return Whether the shieldedInstanceConfig field is set. + */ + public boolean hasShieldedInstanceConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * @return The shieldedInstanceConfig. + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + if (shieldedInstanceConfigBuilder_ == null) { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } else { + return shieldedInstanceConfigBuilder_.getMessage(); + } + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shieldedInstanceConfig_ = value; + } else { + shieldedInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder setShieldedInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = builderForValue.build(); + } else { + shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + if (shieldedInstanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { + getShieldedInstanceConfigBuilder().mergeFrom(value); + } else { + shieldedInstanceConfig_ = value; + } + } else { + shieldedInstanceConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + public Builder clearShieldedInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + shieldedInstanceConfig_ = null; + if (shieldedInstanceConfigBuilder_ != null) { + shieldedInstanceConfigBuilder_.dispose(); + shieldedInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getShieldedInstanceConfigFieldBuilder().getBuilder(); + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + if (shieldedInstanceConfigBuilder_ != null) { + return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return shieldedInstanceConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + } + } + /** + *
+         * A set of Compute Engine Shielded instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> + getShieldedInstanceConfigFieldBuilder() { + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); + shieldedInstanceConfig_ = null; + } + return shieldedInstanceConfigBuilder_; + } + + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * @return Whether the confidentialInstanceConfig field is set. + */ + public boolean hasConfidentialInstanceConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * @return The confidentialInstanceConfig. + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + if (confidentialInstanceConfigBuilder_ == null) { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + } else { + return confidentialInstanceConfigBuilder_.getMessage(); + } + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + if (confidentialInstanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confidentialInstanceConfig_ = value; + } else { + confidentialInstanceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + public Builder setConfidentialInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { + if (confidentialInstanceConfigBuilder_ == null) { + confidentialInstanceConfig_ = builderForValue.build(); + } else { + confidentialInstanceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + if (confidentialInstanceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + confidentialInstanceConfig_ != null && + confidentialInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { + getConfidentialInstanceConfigBuilder().mergeFrom(value); + } else { + confidentialInstanceConfig_ = value; + } + } else { + confidentialInstanceConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + public Builder clearConfidentialInstanceConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + confidentialInstanceConfig_ = null; + if (confidentialInstanceConfigBuilder_ != null) { + confidentialInstanceConfigBuilder_.dispose(); + confidentialInstanceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getConfidentialInstanceConfigFieldBuilder().getBuilder(); + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + if (confidentialInstanceConfigBuilder_ != null) { + return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); + } else { + return confidentialInstanceConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + } + } + /** + *
+         * A set of Compute Engine Confidential VM instance options.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> + getConfidentialInstanceConfigFieldBuilder() { + if (confidentialInstanceConfigBuilder_ == null) { + confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), + getParentForChildren(), + isClean()); + confidentialInstanceConfig_ = null; + } + return confidentialInstanceConfigBuilder_; + } + + private int bootDiskSizeGb_ ; + /** + *
+         * Size of the boot disk in GB. Defaults to 50.
+         * 
+ * + * int32 boot_disk_size_gb = 9; + * @return The bootDiskSizeGb. + */ + @java.lang.Override + public int getBootDiskSizeGb() { + return bootDiskSizeGb_; + } + /** + *
+         * Size of the boot disk in GB. Defaults to 50.
+         * 
+ * + * int32 boot_disk_size_gb = 9; + * @param value The bootDiskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setBootDiskSizeGb(int value) { + + bootDiskSizeGb_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+         * Size of the boot disk in GB. Defaults to 50.
+         * 
+ * + * int32 boot_disk_size_gb = 9; + * @return This builder for chaining. + */ + public Builder clearBootDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x00000100); + bootDiskSizeGb_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int configCase_ = 0; + private java.lang.Object config_; + public enum ConfigCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCE_INSTANCE(1), + CONFIG_NOT_SET(0); + private final int value; + private ConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ConfigCase forNumber(int value) { + switch (value) { + case 1: return GCE_INSTANCE; + case 0: return CONFIG_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); + } + + public static final int GCE_INSTANCE_FIELD_NUMBER = 1; + /** + *
+     * Specifies a Compute Engine instance as the host.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * @return Whether the gceInstance field is set. + */ + @java.lang.Override + public boolean hasGceInstance() { + return configCase_ == 1; + } + /** + *
+     * Specifies a Compute Engine instance as the host.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * @return The gceInstance. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance() { + if (configCase_ == 1) { + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + /** + *
+     * Specifies a Compute Engine instance as the host.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + if (configCase_ == 1) { + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + + 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 (configCase_ == 1) { + output.writeMessage(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (configCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + } + 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.workstations.v1.WorkstationConfig.Host)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.Host other = (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; + + if (!getConfigCase().equals(other.getConfigCase())) return false; + switch (configCase_) { + case 1: + if (!getGceInstance() + .equals(other.getGceInstance())) return false; + break; + case 0: + default: + } + 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(); + switch (configCase_) { + case 1: + hash = (37 * hash) + GCE_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getGceInstance().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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; + } + /** + *
+     * Runtime host for a workstation.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host) + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gceInstanceBuilder_ != null) { + gceInstanceBuilder_.clear(); + } + configCase_ = 0; + config_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host result = new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.Host result) { + result.configCase_ = configCase_; + result.config_ = this.config_; + if (configCase_ == 1 && + gceInstanceBuilder_ != null) { + result.config_ = gceInstanceBuilder_.build(); + } + } + + @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.workstations.v1.WorkstationConfig.Host) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) return this; + switch (other.getConfigCase()) { + case GCE_INSTANCE: { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: { + break; + } + } + 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: { + input.readMessage( + getGceInstanceFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int configCase_ = 0; + private java.lang.Object config_; + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); + } + + public Builder clearConfig() { + configCase_ = 0; + config_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * @return Whether the gceInstance field is set. + */ + @java.lang.Override + public boolean hasGceInstance() { + return configCase_ == 1; + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * @return The gceInstance. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance() { + if (gceInstanceBuilder_ == null) { + if (configCase_ == 1) { + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } else { + if (configCase_ == 1) { + return gceInstanceBuilder_.getMessage(); + } + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + public Builder setGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + if (gceInstanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + onChanged(); + } else { + gceInstanceBuilder_.setMessage(value); + } + configCase_ = 1; + return this; + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + public Builder setGceInstance( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder builderForValue) { + if (gceInstanceBuilder_ == null) { + config_ = builderForValue.build(); + onChanged(); + } else { + gceInstanceBuilder_.setMessage(builderForValue.build()); + } + configCase_ = 1; + return this; + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + public Builder mergeGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + if (gceInstanceBuilder_ == null) { + if (configCase_ == 1 && + config_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { + config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_) + .mergeFrom(value).buildPartial(); + } else { + config_ = value; + } + onChanged(); + } else { + if (configCase_ == 1) { + gceInstanceBuilder_.mergeFrom(value); + } else { + gceInstanceBuilder_.setMessage(value); + } + } + configCase_ = 1; + return this; + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + public Builder clearGceInstance() { + if (gceInstanceBuilder_ == null) { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + onChanged(); + } + } else { + if (configCase_ == 1) { + configCase_ = 0; + config_ = null; + } + gceInstanceBuilder_.clear(); + } + return this; + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { + return getGceInstanceFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { + return gceInstanceBuilder_.getMessageOrBuilder(); + } else { + if (configCase_ == 1) { + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + } + /** + *
+       * Specifies a Compute Engine instance as the host.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> + getGceInstanceFieldBuilder() { + if (gceInstanceBuilder_ == null) { + if (!(configCase_ == 1)) { + config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_, + getParentForChildren(), + isClean()); + config_ = null; + } + configCase_ = 1; + onChanged(); + return gceInstanceBuilder_; + } + @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.workstations.v1.WorkstationConfig.Host) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host) + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.Host getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PersistentDirectoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A PersistentDirectory backed by a Compute Engine persistent disk.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * @return Whether the gcePd field is set. + */ + boolean hasGcePd(); + /** + *
+     * A PersistentDirectory backed by a Compute Engine persistent disk.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * @return The gcePd. + */ + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); + /** + *
+     * A PersistentDirectory backed by a Compute Engine persistent disk.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); + + /** + *
+     * Location of this directory in the running workstation.
+     * 
+ * + * string mount_path = 1; + * @return The mountPath. + */ + java.lang.String getMountPath(); + /** + *
+     * Location of this directory in the running workstation.
+     * 
+ * + * string mount_path = 1; + * @return The bytes for mountPath. + */ + com.google.protobuf.ByteString + getMountPathBytes(); + + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); + } + /** + *
+   * A directory to persist across workstation sessions.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} + */ + public static final class PersistentDirectory extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) + PersistentDirectoryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersistentDirectory.newBuilder() to construct. + private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PersistentDirectory() { + mountPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PersistentDirectory(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + } + + public interface GceRegionalPersistentDiskOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Size of the disk in GB. Must be empty if source_snapshot is set.
+       * Defaults to 200.
+       * 
+ * + * int32 size_gb = 1; + * @return The sizeGb. + */ + int getSizeGb(); + + /** + *
+       * Type of file system that the disk should be formatted with. The
+       * workstation image must support this file system type. Must be empty
+       * if source_snapshot is set. Defaults to ext4.
+       * 
+ * + * string fs_type = 2; + * @return The fsType. + */ + java.lang.String getFsType(); + /** + *
+       * Type of file system that the disk should be formatted with. The
+       * workstation image must support this file system type. Must be empty
+       * if source_snapshot is set. Defaults to ext4.
+       * 
+ * + * string fs_type = 2; + * @return The bytes for fsType. + */ + com.google.protobuf.ByteString + getFsTypeBytes(); + + /** + *
+       * Type of the disk to use. Defaults to pd-standard.
+       * 
+ * + * string disk_type = 3; + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + *
+       * Type of the disk to use. Defaults to pd-standard.
+       * 
+ * + * string disk_type = 3; + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString + getDiskTypeBytes(); + + /** + *
+       * Name of the snapshot to use as the source for the disk. If set,
+       * size_gb and fs_type must be empty.
+       * 
+ * + * string source_snapshot = 5; + * @return The sourceSnapshot. + */ + java.lang.String getSourceSnapshot(); + /** + *
+       * Name of the snapshot to use as the source for the disk. If set,
+       * size_gb and fs_type must be empty.
+       * 
+ * + * string source_snapshot = 5; + * @return The bytes for sourceSnapshot. + */ + com.google.protobuf.ByteString + getSourceSnapshotBytes(); + + /** + *
+       * What should happen to the disk after the workstation is deleted.
+       * Defaults to DELETE.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return The enum numeric value on the wire for reclaimPolicy. + */ + int getReclaimPolicyValue(); + /** + *
+       * What should happen to the disk after the workstation is deleted.
+       * Defaults to DELETE.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return The reclaimPolicy. + */ + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); + } + /** + *
+     * A PersistentDirectory backed by a Compute Engine regional persistent
+     * disk.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + */ + public static final class GceRegionalPersistentDisk extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) + GceRegionalPersistentDiskOrBuilder { + private static final long serialVersionUID = 0L; + // Use GceRegionalPersistentDisk.newBuilder() to construct. + private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GceRegionalPersistentDisk() { + fsType_ = ""; + diskType_ = ""; + sourceSnapshot_ = ""; + reclaimPolicy_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GceRegionalPersistentDisk(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + } + + /** + *
+       * Value representing what should happen to the disk after the workstation
+       * is deleted.
+       * 
+ * + * Protobuf enum {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + */ + public enum ReclaimPolicy + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+         * Do not use.
+         * 
+ * + * RECLAIM_POLICY_UNSPECIFIED = 0; + */ + RECLAIM_POLICY_UNSPECIFIED(0), + /** + *
+         * The persistent disk will be deleted with the workstation.
+         * 
+ * + * DELETE = 1; + */ + DELETE(1), + /** + *
+         * The persistent disk will be remain after the workstation is deleted,
+         * and the administrator must manually delete the disk.
+         * 
+ * + * RETAIN = 2; + */ + RETAIN(2), + UNRECOGNIZED(-1), + ; + + /** + *
+         * Do not use.
+         * 
+ * + * RECLAIM_POLICY_UNSPECIFIED = 0; + */ + public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; + /** + *
+         * The persistent disk will be deleted with the workstation.
+         * 
+ * + * DELETE = 1; + */ + public static final int DELETE_VALUE = 1; + /** + *
+         * The persistent disk will be remain after the workstation is deleted,
+         * and the administrator must manually delete the disk.
+         * 
+ * + * RETAIN = 2; + */ + public static final int RETAIN_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReclaimPolicy valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ReclaimPolicy forNumber(int value) { + switch (value) { + case 0: return RECLAIM_POLICY_UNSPECIFIED; + case 1: return DELETE; + case 2: return RETAIN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ReclaimPolicy> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReclaimPolicy findValueByNumber(int number) { + return ReclaimPolicy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0); + } + + private static final ReclaimPolicy[] VALUES = values(); + + public static ReclaimPolicy valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ReclaimPolicy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy) + } + + public static final int SIZE_GB_FIELD_NUMBER = 1; + private int sizeGb_ = 0; + /** + *
+       * Size of the disk in GB. Must be empty if source_snapshot is set.
+       * Defaults to 200.
+       * 
+ * + * int32 size_gb = 1; + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + + public static final int FS_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object fsType_ = ""; + /** + *
+       * Type of file system that the disk should be formatted with. The
+       * workstation image must support this file system type. Must be empty
+       * if source_snapshot is set. Defaults to ext4.
+       * 
+ * + * string fs_type = 2; + * @return The fsType. + */ + @java.lang.Override + public java.lang.String getFsType() { + java.lang.Object ref = fsType_; + 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(); + fsType_ = s; + return s; + } + } + /** + *
+       * Type of file system that the disk should be formatted with. The
+       * workstation image must support this file system type. Must be empty
+       * if source_snapshot is set. Defaults to ext4.
+       * 
+ * + * string fs_type = 2; + * @return The bytes for fsType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFsTypeBytes() { + java.lang.Object ref = fsType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object diskType_ = ""; + /** + *
+       * Type of the disk to use. Defaults to pd-standard.
+       * 
+ * + * string disk_type = 3; + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + 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(); + diskType_ = s; + return s; + } + } + /** + *
+       * Type of the disk to use. Defaults to pd-standard.
+       * 
+ * + * string disk_type = 3; + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object sourceSnapshot_ = ""; + /** + *
+       * Name of the snapshot to use as the source for the disk. If set,
+       * size_gb and fs_type must be empty.
+       * 
+ * + * string source_snapshot = 5; + * @return The sourceSnapshot. + */ + @java.lang.Override + public java.lang.String getSourceSnapshot() { + java.lang.Object ref = sourceSnapshot_; + 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(); + sourceSnapshot_ = s; + return s; + } + } + /** + *
+       * Name of the snapshot to use as the source for the disk. If set,
+       * size_gb and fs_type must be empty.
+       * 
+ * + * string source_snapshot = 5; + * @return The bytes for sourceSnapshot. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { + java.lang.Object ref = sourceSnapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceSnapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; + private int reclaimPolicy_ = 0; + /** + *
+       * What should happen to the disk after the workstation is deleted.
+       * Defaults to DELETE.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return The enum numeric value on the wire for reclaimPolicy. + */ + @java.lang.Override public int getReclaimPolicyValue() { + return reclaimPolicy_; + } + /** + *
+       * What should happen to the disk after the workstation is deleted.
+       * Defaults to DELETE.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return The reclaimPolicy. + */ + @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sizeGb_ != 0) { + output.writeInt32(1, sizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); + } + if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + output.writeEnum(4, reclaimPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceSnapshot_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sizeGb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sizeGb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); + } + if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, reclaimPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); + } + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; + + if (getSizeGb() + != other.getSizeGb()) return false; + if (!getFsType() + .equals(other.getFsType())) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; + if (reclaimPolicy_ != other.reclaimPolicy_) 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) + SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + getSizeGb(); + hash = (37 * hash) + FS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getFsType().hashCode(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + SOURCE_SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSourceSnapshot().hashCode(); + hash = (37 * hash) + RECLAIM_POLICY_FIELD_NUMBER; + hash = (53 * hash) + reclaimPolicy_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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 PersistentDirectory backed by a Compute Engine regional persistent
+       * disk.
+       * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sizeGb_ = 0; + fsType_ = ""; + diskType_ = ""; + sourceSnapshot_ = ""; + reclaimPolicy_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sizeGb_ = sizeGb_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fsType_ = fsType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sourceSnapshot_ = sourceSnapshot_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reclaimPolicy_ = reclaimPolicy_; + } + } + + @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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; + if (other.getSizeGb() != 0) { + setSizeGb(other.getSizeGb()); + } + if (!other.getFsType().isEmpty()) { + fsType_ = other.fsType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSourceSnapshot().isEmpty()) { + sourceSnapshot_ = other.sourceSnapshot_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.reclaimPolicy_ != 0) { + setReclaimPolicyValue(other.getReclaimPolicyValue()); + } + 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 8: { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int sizeGb_ ; + /** + *
+         * Size of the disk in GB. Must be empty if source_snapshot is set.
+         * Defaults to 200.
+         * 
+ * + * int32 size_gb = 1; + * @return The sizeGb. + */ + @java.lang.Override + public int getSizeGb() { + return sizeGb_; + } + /** + *
+         * Size of the disk in GB. Must be empty if source_snapshot is set.
+         * Defaults to 200.
+         * 
+ * + * int32 size_gb = 1; + * @param value The sizeGb to set. + * @return This builder for chaining. + */ + public Builder setSizeGb(int value) { + + sizeGb_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * Size of the disk in GB. Must be empty if source_snapshot is set.
+         * Defaults to 200.
+         * 
+ * + * int32 size_gb = 1; + * @return This builder for chaining. + */ + public Builder clearSizeGb() { + bitField0_ = (bitField0_ & ~0x00000001); + sizeGb_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fsType_ = ""; + /** + *
+         * Type of file system that the disk should be formatted with. The
+         * workstation image must support this file system type. Must be empty
+         * if source_snapshot is set. Defaults to ext4.
+         * 
+ * + * string fs_type = 2; + * @return The fsType. + */ + public java.lang.String getFsType() { + java.lang.Object ref = fsType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fsType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Type of file system that the disk should be formatted with. The
+         * workstation image must support this file system type. Must be empty
+         * if source_snapshot is set. Defaults to ext4.
+         * 
+ * + * string fs_type = 2; + * @return The bytes for fsType. + */ + public com.google.protobuf.ByteString + getFsTypeBytes() { + java.lang.Object ref = fsType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Type of file system that the disk should be formatted with. The
+         * workstation image must support this file system type. Must be empty
+         * if source_snapshot is set. Defaults to ext4.
+         * 
+ * + * string fs_type = 2; + * @param value The fsType to set. + * @return This builder for chaining. + */ + public Builder setFsType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fsType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * Type of file system that the disk should be formatted with. The
+         * workstation image must support this file system type. Must be empty
+         * if source_snapshot is set. Defaults to ext4.
+         * 
+ * + * string fs_type = 2; + * @return This builder for chaining. + */ + public Builder clearFsType() { + fsType_ = getDefaultInstance().getFsType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+         * Type of file system that the disk should be formatted with. The
+         * workstation image must support this file system type. Must be empty
+         * if source_snapshot is set. Defaults to ext4.
+         * 
+ * + * string fs_type = 2; + * @param value The bytes for fsType to set. + * @return This builder for chaining. + */ + public Builder setFsTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fsType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object diskType_ = ""; + /** + *
+         * Type of the disk to use. Defaults to pd-standard.
+         * 
+ * + * string disk_type = 3; + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Type of the disk to use. Defaults to pd-standard.
+         * 
+ * + * string disk_type = 3; + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString + getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Type of the disk to use. Defaults to pd-standard.
+         * 
+ * + * string disk_type = 3; + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + diskType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * Type of the disk to use. Defaults to pd-standard.
+         * 
+ * + * string disk_type = 3; + * @return This builder for chaining. + */ + public Builder clearDiskType() { + diskType_ = getDefaultInstance().getDiskType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+         * Type of the disk to use. Defaults to pd-standard.
+         * 
+ * + * string disk_type = 3; + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + diskType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object sourceSnapshot_ = ""; + /** + *
+         * Name of the snapshot to use as the source for the disk. If set,
+         * size_gb and fs_type must be empty.
+         * 
+ * + * string source_snapshot = 5; + * @return The sourceSnapshot. + */ + public java.lang.String getSourceSnapshot() { + java.lang.Object ref = sourceSnapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSnapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Name of the snapshot to use as the source for the disk. If set,
+         * size_gb and fs_type must be empty.
+         * 
+ * + * string source_snapshot = 5; + * @return The bytes for sourceSnapshot. + */ + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { + java.lang.Object ref = sourceSnapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceSnapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Name of the snapshot to use as the source for the disk. If set,
+         * size_gb and fs_type must be empty.
+         * 
+ * + * string source_snapshot = 5; + * @param value The sourceSnapshot to set. + * @return This builder for chaining. + */ + public Builder setSourceSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sourceSnapshot_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * Name of the snapshot to use as the source for the disk. If set,
+         * size_gb and fs_type must be empty.
+         * 
+ * + * string source_snapshot = 5; + * @return This builder for chaining. + */ + public Builder clearSourceSnapshot() { + sourceSnapshot_ = getDefaultInstance().getSourceSnapshot(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+         * Name of the snapshot to use as the source for the disk. If set,
+         * size_gb and fs_type must be empty.
+         * 
+ * + * string source_snapshot = 5; + * @param value The bytes for sourceSnapshot to set. + * @return This builder for chaining. + */ + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sourceSnapshot_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int reclaimPolicy_ = 0; + /** + *
+         * What should happen to the disk after the workstation is deleted.
+         * Defaults to DELETE.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return The enum numeric value on the wire for reclaimPolicy. + */ + @java.lang.Override public int getReclaimPolicyValue() { + return reclaimPolicy_; + } + /** + *
+         * What should happen to the disk after the workstation is deleted.
+         * Defaults to DELETE.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @param value The enum numeric value on the wire for reclaimPolicy to set. + * @return This builder for chaining. + */ + public Builder setReclaimPolicyValue(int value) { + reclaimPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+         * What should happen to the disk after the workstation is deleted.
+         * Defaults to DELETE.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return The reclaimPolicy. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + } + /** + *
+         * What should happen to the disk after the workstation is deleted.
+         * Defaults to DELETE.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @param value The reclaimPolicy to set. + * @return This builder for chaining. + */ + public Builder setReclaimPolicy(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + reclaimPolicy_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * What should happen to the disk after the workstation is deleted.
+         * Defaults to DELETE.
+         * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * @return This builder for chaining. + */ + public Builder clearReclaimPolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + reclaimPolicy_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int directoryTypeCase_ = 0; + private java.lang.Object directoryType_; + public enum DirectoryTypeCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCE_PD(2), + DIRECTORYTYPE_NOT_SET(0); + private final int value; + private DirectoryTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DirectoryTypeCase valueOf(int value) { + return forNumber(value); + } + + public static DirectoryTypeCase forNumber(int value) { + switch (value) { + case 2: return GCE_PD; + case 0: return DIRECTORYTYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); + } + + public static final int GCE_PD_FIELD_NUMBER = 2; + /** + *
+     * A PersistentDirectory backed by a Compute Engine persistent disk.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * @return Whether the gcePd field is set. + */ + @java.lang.Override + public boolean hasGcePd() { + return directoryTypeCase_ == 2; + } + /** + *
+     * A PersistentDirectory backed by a Compute Engine persistent disk.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * @return The gcePd. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + if (directoryTypeCase_ == 2) { + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + /** + *
+     * A PersistentDirectory backed by a Compute Engine persistent disk.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + if (directoryTypeCase_ == 2) { + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + + public static final int MOUNT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object mountPath_ = ""; + /** + *
+     * Location of this directory in the running workstation.
+     * 
+ * + * string mount_path = 1; + * @return The mountPath. + */ + @java.lang.Override + public java.lang.String getMountPath() { + java.lang.Object ref = mountPath_; + 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(); + mountPath_ = s; + return s; + } + } + /** + *
+     * Location of this directory in the running workstation.
+     * 
+ * + * string mount_path = 1; + * @return The bytes for mountPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMountPathBytes() { + java.lang.Object ref = mountPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mountPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); + } + if (directoryTypeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + } + 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(mountPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); + } + if (directoryTypeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + } + 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.workstations.v1.WorkstationConfig.PersistentDirectory)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; + + if (!getMountPath() + .equals(other.getMountPath())) return false; + if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; + switch (directoryTypeCase_) { + case 2: + if (!getGcePd() + .equals(other.getGcePd())) return false; + break; + case 0: + default: + } + 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) + MOUNT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getMountPath().hashCode(); + switch (directoryTypeCase_) { + case 2: + hash = (37 * hash) + GCE_PD_FIELD_NUMBER; + hash = (53 * hash) + getGcePd().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory 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 directory to persist across workstation sessions.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcePdBuilder_ != null) { + gcePdBuilder_.clear(); + } + mountPath_ = ""; + directoryTypeCase_ = 0; + directoryType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory build() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mountPath_ = mountPath_; + } + } + + private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + result.directoryTypeCase_ = directoryTypeCase_; + result.directoryType_ = this.directoryType_; + if (directoryTypeCase_ == 2 && + gcePdBuilder_ != null) { + result.directoryType_ = gcePdBuilder_.build(); + } + } + + @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.workstations.v1.WorkstationConfig.PersistentDirectory) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; + if (!other.getMountPath().isEmpty()) { + mountPath_ = other.mountPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getDirectoryTypeCase()) { + case GCE_PD: { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: { + break; + } + } + 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: { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getGcePdFieldBuilder().getBuilder(), + extensionRegistry); + directoryTypeCase_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int directoryTypeCase_ = 0; + private java.lang.Object directoryType_; + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); + } + + public Builder clearDirectoryType() { + directoryTypeCase_ = 0; + directoryType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * @return Whether the gcePd field is set. + */ + @java.lang.Override + public boolean hasGcePd() { + return directoryTypeCase_ == 2; + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * @return The gcePd. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + if (gcePdBuilder_ == null) { + if (directoryTypeCase_ == 2) { + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } else { + if (directoryTypeCase_ == 2) { + return gcePdBuilder_.getMessage(); + } + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + public Builder setGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + if (gcePdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + directoryType_ = value; + onChanged(); + } else { + gcePdBuilder_.setMessage(value); + } + directoryTypeCase_ = 2; + return this; + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + public Builder setGcePd( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { + if (gcePdBuilder_ == null) { + directoryType_ = builderForValue.build(); + onChanged(); + } else { + gcePdBuilder_.setMessage(builderForValue.build()); + } + directoryTypeCase_ = 2; + return this; + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + public Builder mergeGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + if (gcePdBuilder_ == null) { + if (directoryTypeCase_ == 2 && + directoryType_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) + .mergeFrom(value).buildPartial(); + } else { + directoryType_ = value; + } + onChanged(); + } else { + if (directoryTypeCase_ == 2) { + gcePdBuilder_.mergeFrom(value); + } else { + gcePdBuilder_.setMessage(value); + } + } + directoryTypeCase_ = 2; + return this; + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + public Builder clearGcePd() { + if (gcePdBuilder_ == null) { + if (directoryTypeCase_ == 2) { + directoryTypeCase_ = 0; + directoryType_ = null; + onChanged(); + } + } else { + if (directoryTypeCase_ == 2) { + directoryTypeCase_ = 0; + directoryType_ = null; + } + gcePdBuilder_.clear(); + } + return this; + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { + return getGcePdFieldBuilder().getBuilder(); + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { + return gcePdBuilder_.getMessageOrBuilder(); + } else { + if (directoryTypeCase_ == 2) { + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + } + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + } + /** + *
+       * A PersistentDirectory backed by a Compute Engine persistent disk.
+       * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> + getGcePdFieldBuilder() { + if (gcePdBuilder_ == null) { + if (!(directoryTypeCase_ == 2)) { + directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, + getParentForChildren(), + isClean()); + directoryType_ = null; + } + directoryTypeCase_ = 2; + onChanged(); + return gcePdBuilder_; + } + + private java.lang.Object mountPath_ = ""; + /** + *
+       * Location of this directory in the running workstation.
+       * 
+ * + * string mount_path = 1; + * @return The mountPath. + */ + public java.lang.String getMountPath() { + java.lang.Object ref = mountPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mountPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Location of this directory in the running workstation.
+       * 
+ * + * string mount_path = 1; + * @return The bytes for mountPath. + */ + public com.google.protobuf.ByteString + getMountPathBytes() { + java.lang.Object ref = mountPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mountPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Location of this directory in the running workstation.
+       * 
+ * + * string mount_path = 1; + * @param value The mountPath to set. + * @return This builder for chaining. + */ + public Builder setMountPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + mountPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Location of this directory in the running workstation.
+       * 
+ * + * string mount_path = 1; + * @return This builder for chaining. + */ + public Builder clearMountPath() { + mountPath_ = getDefaultInstance().getMountPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Location of this directory in the running workstation.
+       * 
+ * + * string mount_path = 1; + * @param value The bytes for mountPath to set. + * @return This builder for chaining. + */ + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + mountPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Container) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Docker image defining the container. This image must be accessible by the
+     * config's service account.
+     * 
+ * + * string image = 1; + * @return The image. + */ + java.lang.String getImage(); + /** + *
+     * Docker image defining the container. This image must be accessible by the
+     * config's service account.
+     * 
+ * + * string image = 1; + * @return The bytes for image. + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @return A list containing the command. + */ + java.util.List + getCommandList(); + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @return The count of command. + */ + int getCommandCount(); + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @param index The index of the element to return. + * @return The command at the given index. + */ + java.lang.String getCommand(int index); + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @param index The index of the value to return. + * @return The bytes of the command at the given index. + */ + com.google.protobuf.ByteString + getCommandBytes(int index); + + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @return A list containing the args. + */ + java.util.List + getArgsList(); + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @return The count of args. + */ + int getArgsCount(); + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the element to return. + * @return The args at the given index. + */ + java.lang.String getArgs(int index); + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + int getEnvCount(); + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + boolean containsEnv( + java.lang.String key); + /** + * Use {@link #getEnvMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getEnv(); + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + java.util.Map + getEnvMap(); + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + /* nullable */ +java.lang.String getEnvOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + java.lang.String getEnvOrThrow( + java.lang.String key); + + /** + *
+     * If set, overrides the default DIR specified by the image.
+     * 
+ * + * string working_dir = 5; + * @return The workingDir. + */ + java.lang.String getWorkingDir(); + /** + *
+     * If set, overrides the default DIR specified by the image.
+     * 
+ * + * string working_dir = 5; + * @return The bytes for workingDir. + */ + com.google.protobuf.ByteString + getWorkingDirBytes(); + + /** + *
+     * If set, overrides the USER specified in the image with the given uid.
+     * 
+ * + * int32 run_as_user = 6; + * @return The runAsUser. + */ + int getRunAsUser(); + } + /** + *
+   * A Docker container.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} + */ + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Container) + ContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Container.newBuilder() to construct. + private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Container() { + image_ = ""; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + workingDir_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Container(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetEnv(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + } + + public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object image_ = ""; + /** + *
+     * Docker image defining the container. This image must be accessible by the
+     * config's service account.
+     * 
+ * + * string image = 1; + * @return The image. + */ + @java.lang.Override + public java.lang.String getImage() { + java.lang.Object ref = image_; + 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(); + image_ = s; + return s; + } + } + /** + *
+     * Docker image defining the container. This image must be accessible by the
+     * config's service account.
+     * 
+ * + * string image = 1; + * @return The bytes for image. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList command_; + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @return A list containing the command. + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_; + } + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @return The count of command. + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @param index The index of the element to return. + * @return The command at the given index. + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+     * If set, overrides the default ENTRYPOINT specified by the image.
+     * 
+ * + * repeated string command = 2; + * @param index The index of the value to return. + * @return The bytes of the command at the given index. + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList args_; + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+     * Arguments passed to the entrypoint.
+     * 
+ * + * repeated string args = 3; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int ENV_FIELD_NUMBER = 4; + private static final class EnvDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { + if (env_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); + } + return env_; + } + public int getEnvCount() { + return internalGetEnv().getMap().size(); + } + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnv().getMap().containsKey(key); + } + /** + * Use {@link #getEnvMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnv() { + return getEnvMap(); + } + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public java.util.Map getEnvMap() { + return internalGetEnv().getMap(); + } + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getEnvOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Environment variables passed to the container.
+     * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int WORKING_DIR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object workingDir_ = ""; + /** + *
+     * If set, overrides the default DIR specified by the image.
+     * 
+ * + * string working_dir = 5; + * @return The workingDir. + */ + @java.lang.Override + public java.lang.String getWorkingDir() { + java.lang.Object ref = workingDir_; + 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(); + workingDir_ = s; + return s; + } + } + /** + *
+     * If set, overrides the default DIR specified by the image.
+     * 
+ * + * string working_dir = 5; + * @return The bytes for workingDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkingDirBytes() { + java.lang.Object ref = workingDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workingDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUN_AS_USER_FIELD_NUMBER = 6; + private int runAsUser_ = 0; + /** + *
+     * If set, overrides the USER specified in the image with the given uid.
+     * 
+ * + * int32 run_as_user = 6; + * @return The runAsUser. + */ + @java.lang.Override + public int getRunAsUser() { + return runAsUser_; + } + + 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(image_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + for (int i = 0; i < command_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnv(), + EnvDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); + } + if (runAsUser_ != 0) { + output.writeInt32(6, runAsUser_); + } + 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(image_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + { + int dataSize = 0; + for (int i = 0; i < command_.size(); i++) { + dataSize += computeStringSizeNoTag(command_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + for (java.util.Map.Entry entry + : internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry + env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, env__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); + } + if (runAsUser_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, runAsUser_); + } + 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.workstations.v1.WorkstationConfig.Container)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.Container other = (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!internalGetEnv().equals( + other.internalGetEnv())) return false; + if (!getWorkingDir() + .equals(other.getWorkingDir())) return false; + if (getRunAsUser() + != other.getRunAsUser()) 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) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (getCommandCount() > 0) { + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommandList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (!internalGetEnv().getMap().isEmpty()) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnv().hashCode(); + } + hash = (37 * hash) + WORKING_DIR_FIELD_NUMBER; + hash = (53 * hash) + getWorkingDir().hashCode(); + hash = (37 * hash) + RUN_AS_USER_FIELD_NUMBER; + hash = (53 * hash) + getRunAsUser(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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 Docker container.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Container) + com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetEnv(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableEnv(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Container.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + image_ = ""; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableEnv().clear(); + workingDir_ = ""; + runAsUser_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Container build() { + com.google.cloud.workstations.v1.WorkstationConfig.Container result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Container buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Container result = new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig.Container result) { + if (((bitField0_ & 0x00000002) != 0)) { + command_ = command_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.command_ = command_; + if (((bitField0_ & 0x00000004) != 0)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.args_ = args_; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Container result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.image_ = image_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.env_ = internalGetEnv(); + result.env_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.workingDir_ = workingDir_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.runAsUser_ = runAsUser_; + } + } + + @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.workstations.v1.WorkstationConfig.Container) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Container other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.command_.isEmpty()) { + if (command_.isEmpty()) { + command_ = other.command_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCommandIsMutable(); + command_.addAll(other.command_); + } + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + internalGetMutableEnv().mergeFrom( + other.internalGetEnv()); + bitField0_ |= 0x00000008; + if (!other.getWorkingDir().isEmpty()) { + workingDir_ = other.workingDir_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRunAsUser() != 0) { + setRunAsUser(other.getRunAsUser()); + } + 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: { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + env__ = input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put( + env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object image_ = ""; + /** + *
+       * Docker image defining the container. This image must be accessible by the
+       * config's service account.
+       * 
+ * + * string image = 1; + * @return The image. + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Docker image defining the container. This image must be accessible by the
+       * config's service account.
+       * 
+ * + * string image = 1; + * @return The bytes for image. + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Docker image defining the container. This image must be accessible by the
+       * config's service account.
+       * 
+ * + * string image = 1; + * @param value The image to set. + * @return This builder for chaining. + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Docker image defining the container. This image must be accessible by the
+       * config's service account.
+       * 
+ * + * string image = 1; + * @return This builder for chaining. + */ + public Builder clearImage() { + image_ = getDefaultInstance().getImage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Docker image defining the container. This image must be accessible by the
+       * config's service account.
+       * 
+ * + * string image = 1; + * @param value The bytes for image to set. + * @return This builder for chaining. + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + image_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + command_ = new com.google.protobuf.LazyStringArrayList(command_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @return A list containing the command. + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_.getUnmodifiableView(); + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @return The count of command. + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @param index The index of the element to return. + * @return The command at the given index. + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @param index The index of the value to return. + * @return The bytes of the command at the given index. + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @param index The index to set the value at. + * @param value The command to set. + * @return This builder for chaining. + */ + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCommandIsMutable(); + command_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @param value The command to add. + * @return This builder for chaining. + */ + public Builder addCommand( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @param values The command to add. + * @return This builder for chaining. + */ + public Builder addAllCommand( + java.lang.Iterable values) { + ensureCommandIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); + onChanged(); + return this; + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @return This builder for chaining. + */ + public Builder clearCommand() { + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * If set, overrides the default ENTRYPOINT specified by the image.
+       * 
+ * + * repeated string command = 2; + * @param value The bytes of the command to add. + * @return This builder for chaining. + */ + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @return A list containing the args. + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @return The count of args. + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @param index The index of the element to return. + * @return The args at the given index. + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @param index The index of the value to return. + * @return The bytes of the args at the given index. + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @param index The index to set the value at. + * @param value The args to set. + * @return This builder for chaining. + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @param value The args to add. + * @return This builder for chaining. + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @param values The args to add. + * @return This builder for chaining. + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @return This builder for chaining. + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * Arguments passed to the entrypoint.
+       * 
+ * + * repeated string args = 3; + * @param value The bytes of the args to add. + * @return This builder for chaining. + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { + if (env_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); + } + return env_; + } + private com.google.protobuf.MapField + internalGetMutableEnv() { + if (env_ == null) { + env_ = com.google.protobuf.MapField.newMapField( + EnvDefaultEntryHolder.defaultEntry); + } + if (!env_.isMutable()) { + env_ = env_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return env_; + } + public int getEnvCount() { + return internalGetEnv().getMap().size(); + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetEnv().getMap().containsKey(key); + } + /** + * Use {@link #getEnvMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getEnv() { + return getEnvMap(); + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public java.util.Map getEnvMap() { + return internalGetEnv().getMap(); + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getEnvOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + @java.lang.Override + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearEnv() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableEnv().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + public Builder removeEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnv().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableEnv() { + bitField0_ |= 0x00000008; + return internalGetMutableEnv().getMutableMap(); + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + public Builder putEnv( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableEnv().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * Environment variables passed to the container.
+       * 
+ * + * map<string, string> env = 4; + */ + public Builder putAllEnv( + java.util.Map values) { + internalGetMutableEnv().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object workingDir_ = ""; + /** + *
+       * If set, overrides the default DIR specified by the image.
+       * 
+ * + * string working_dir = 5; + * @return The workingDir. + */ + public java.lang.String getWorkingDir() { + java.lang.Object ref = workingDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workingDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, overrides the default DIR specified by the image.
+       * 
+ * + * string working_dir = 5; + * @return The bytes for workingDir. + */ + public com.google.protobuf.ByteString + getWorkingDirBytes() { + java.lang.Object ref = workingDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workingDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, overrides the default DIR specified by the image.
+       * 
+ * + * string working_dir = 5; + * @param value The workingDir to set. + * @return This builder for chaining. + */ + public Builder setWorkingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workingDir_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+       * If set, overrides the default DIR specified by the image.
+       * 
+ * + * string working_dir = 5; + * @return This builder for chaining. + */ + public Builder clearWorkingDir() { + workingDir_ = getDefaultInstance().getWorkingDir(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * If set, overrides the default DIR specified by the image.
+       * 
+ * + * string working_dir = 5; + * @param value The bytes for workingDir to set. + * @return This builder for chaining. + */ + public Builder setWorkingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workingDir_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int runAsUser_ ; + /** + *
+       * If set, overrides the USER specified in the image with the given uid.
+       * 
+ * + * int32 run_as_user = 6; + * @return The runAsUser. + */ + @java.lang.Override + public int getRunAsUser() { + return runAsUser_; + } + /** + *
+       * If set, overrides the USER specified in the image with the given uid.
+       * 
+ * + * int32 run_as_user = 6; + * @param value The runAsUser to set. + * @return This builder for chaining. + */ + public Builder setRunAsUser(int value) { + + runAsUser_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+       * If set, overrides the USER specified in the image with the given uid.
+       * 
+ * + * int32 run_as_user = 6; + * @return This builder for chaining. + */ + public Builder clearRunAsUser() { + bitField0_ = (bitField0_ & ~0x00000020); + runAsUser_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Container) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Container) + private static final com.google.cloud.workstations.v1.WorkstationConfig.Container DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Container(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CustomerEncryptionKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The name of the Google Cloud KMS encryption key. For example,
+     * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+     * 
+ * + * string kms_key = 1; + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + /** + *
+     * The name of the Google Cloud KMS encryption key. For example,
+     * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+     * 
+ * + * string kms_key = 1; + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString + getKmsKeyBytes(); + + /** + *
+     * The service account to use with the specified
+     * KMS key. We recommend that you use a separate service account
+     * and follow KMS best practices. For more information, see
+     * [Separation of
+     * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+     * `gcloud kms keys add-iam-policy-binding`
+     * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+     * 
+ * + * string kms_key_service_account = 2; + * @return The kmsKeyServiceAccount. + */ + java.lang.String getKmsKeyServiceAccount(); + /** + *
+     * The service account to use with the specified
+     * KMS key. We recommend that you use a separate service account
+     * and follow KMS best practices. For more information, see
+     * [Separation of
+     * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+     * `gcloud kms keys add-iam-policy-binding`
+     * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+     * 
+ * + * string kms_key_service_account = 2; + * @return The bytes for kmsKeyServiceAccount. + */ + com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes(); + } + /** + *
+   * A customer-managed encryption key for the Compute Engine resources
+   * of this workstation configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey} + */ + public static final class CustomerEncryptionKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) + CustomerEncryptionKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomerEncryptionKey.newBuilder() to construct. + private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CustomerEncryptionKey() { + kmsKey_ = ""; + kmsKeyServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CustomerEncryptionKey(); + } + + @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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class); + } + + public static final int KMS_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + /** + *
+     * The name of the Google Cloud KMS encryption key. For example,
+     * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+     * 
+ * + * string kms_key = 1; + * @return The kmsKey. + */ + @java.lang.Override + 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; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + /** + *
+     * The name of the Google Cloud KMS encryption key. For example,
+     * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+     * 
+ * + * string kms_key = 1; + * @return The bytes for kmsKey. + */ + @java.lang.Override + 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); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyServiceAccount_ = ""; + /** + *
+     * The service account to use with the specified
+     * KMS key. We recommend that you use a separate service account
+     * and follow KMS best practices. For more information, see
+     * [Separation of
+     * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+     * `gcloud kms keys add-iam-policy-binding`
+     * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+     * 
+ * + * string kms_key_service_account = 2; + * @return The kmsKeyServiceAccount. + */ + @java.lang.Override + public java.lang.String getKmsKeyServiceAccount() { + java.lang.Object ref = kmsKeyServiceAccount_; + 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(); + kmsKeyServiceAccount_ = s; + return s; + } + } + /** + *
+     * The service account to use with the specified
+     * KMS key. We recommend that you use a separate service account
+     * and follow KMS best practices. For more information, see
+     * [Separation of
+     * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+     * `gcloud kms keys add-iam-policy-binding`
+     * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+     * 
+ * + * string kms_key_service_account = 2; + * @return The bytes for kmsKeyServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { + java.lang.Object ref = kmsKeyServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKeyServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyServiceAccount_); + } + 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(kmsKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKey_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyServiceAccount_); + } + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; + + if (!getKmsKey() + .equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount() + .equals(other.getKmsKeyServiceAccount())) 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) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (37 * hash) + KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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 customer-managed encryption key for the Compute Engine resources
+     * of this workstation configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKey_ = ""; + kmsKeyServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey build() { + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKey_ = kmsKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kmsKeyServiceAccount_ = kmsKeyServiceAccount_; + } + } + + @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.workstations.v1.WorkstationConfig.CustomerEncryptionKey) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this; + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKmsKeyServiceAccount().isEmpty()) { + kmsKeyServiceAccount_ = other.kmsKeyServiceAccount_; + bitField0_ |= 0x00000002; + onChanged(); + } + 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: { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + kmsKeyServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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 kmsKey_ = ""; + /** + *
+       * The name of the Google Cloud KMS encryption key. For example,
+       * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+       * 
+ * + * string kms_key = 1; + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The name of the Google Cloud KMS encryption key. For example,
+       * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+       * 
+ * + * string kms_key = 1; + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString + getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The name of the Google Cloud KMS encryption key. For example,
+       * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+       * 
+ * + * string kms_key = 1; + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + kmsKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * The name of the Google Cloud KMS encryption key. For example,
+       * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+       * 
+ * + * string kms_key = 1; + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The name of the Google Cloud KMS encryption key. For example,
+       * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
+       * 
+ * + * string kms_key = 1; + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyServiceAccount_ = ""; + /** + *
+       * The service account to use with the specified
+       * KMS key. We recommend that you use a separate service account
+       * and follow KMS best practices. For more information, see
+       * [Separation of
+       * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+       * `gcloud kms keys add-iam-policy-binding`
+       * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+       * 
+ * + * string kms_key_service_account = 2; + * @return The kmsKeyServiceAccount. + */ + public java.lang.String getKmsKeyServiceAccount() { + java.lang.Object ref = kmsKeyServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The service account to use with the specified
+       * KMS key. We recommend that you use a separate service account
+       * and follow KMS best practices. For more information, see
+       * [Separation of
+       * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+       * `gcloud kms keys add-iam-policy-binding`
+       * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+       * 
+ * + * string kms_key_service_account = 2; + * @return The bytes for kmsKeyServiceAccount. + */ + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { + java.lang.Object ref = kmsKeyServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kmsKeyServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The service account to use with the specified
+       * KMS key. We recommend that you use a separate service account
+       * and follow KMS best practices. For more information, see
+       * [Separation of
+       * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+       * `gcloud kms keys add-iam-policy-binding`
+       * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+       * 
+ * + * string kms_key_service_account = 2; + * @param value The kmsKeyServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + kmsKeyServiceAccount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The service account to use with the specified
+       * KMS key. We recommend that you use a separate service account
+       * and follow KMS best practices. For more information, see
+       * [Separation of
+       * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+       * `gcloud kms keys add-iam-policy-binding`
+       * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+       * 
+ * + * string kms_key_service_account = 2; + * @return This builder for chaining. + */ + public Builder clearKmsKeyServiceAccount() { + kmsKeyServiceAccount_ = getDefaultInstance().getKmsKeyServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * The service account to use with the specified
+       * KMS key. We recommend that you use a separate service account
+       * and follow KMS best practices. For more information, see
+       * [Separation of
+       * duties](https://cloud.google.com/kms/docs/separation-of-duties) and
+       * `gcloud kms keys add-iam-policy-binding`
+       * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
+       * 
+ * + * string kms_key_service_account = 2; + * @param value The bytes for kmsKeyServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + kmsKeyServiceAccount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) + private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + @java.lang.Override + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RECONCILING_FIELD_NUMBER = 4; + private boolean reconciling_ = false; + /** + *
+   * Output only. Indicates whether this resource is currently being updated to
+   * match its intended state.
+   * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 18; + 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + 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 labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp deleteTime_; + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; + private com.google.protobuf.Duration idleTimeout_; + /** + *
+   * How long to wait before automatically stopping an instance that hasn't
+   * received any user traffic. A value of 0 indicates that this instance
+   * should never time out due to idleness. Defaults to 20 minutes.
+   * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + * @return Whether the idleTimeout field is set. + */ + @java.lang.Override + public boolean hasIdleTimeout() { + return idleTimeout_ != null; + } + /** + *
+   * How long to wait before automatically stopping an instance that hasn't
+   * received any user traffic. A value of 0 indicates that this instance
+   * should never time out due to idleness. Defaults to 20 minutes.
+   * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + * @return The idleTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getIdleTimeout() { + return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + } + /** + *
+   * How long to wait before automatically stopping an instance that hasn't
+   * received any user traffic. A value of 0 indicates that this instance
+   * should never time out due to idleness. Defaults to 20 minutes.
+   * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { + return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + } + + public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11; + private com.google.protobuf.Duration runningTimeout_; + /** + *
+   * How long to wait before automatically stopping a workstation after it
+   * started. A value of 0 indicates that workstations using this configuration
+   * should never time out. Must be greater than 0 and less than 24 hours if
+   * encryption_key is set. Defaults to 12 hours.
+   * 
+ * + * .google.protobuf.Duration running_timeout = 11; + * @return Whether the runningTimeout field is set. + */ + @java.lang.Override + public boolean hasRunningTimeout() { + return runningTimeout_ != null; + } + /** + *
+   * How long to wait before automatically stopping a workstation after it
+   * started. A value of 0 indicates that workstations using this configuration
+   * should never time out. Must be greater than 0 and less than 24 hours if
+   * encryption_key is set. Defaults to 12 hours.
+   * 
+ * + * .google.protobuf.Duration running_timeout = 11; + * @return The runningTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getRunningTimeout() { + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + } + /** + *
+   * How long to wait before automatically stopping a workstation after it
+   * started. A value of 0 indicates that workstations using this configuration
+   * should never time out. Must be greater than 0 and less than 24 hours if
+   * encryption_key is set. Defaults to 12 hours.
+   * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + } + + public static final int HOST_FIELD_NUMBER = 12; + private com.google.cloud.workstations.v1.WorkstationConfig.Host host_; + /** + *
+   * Runtime host for the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * @return Whether the host field is set. + */ + @java.lang.Override + public boolean hasHost() { + return host_ != null; + } + /** + *
+   * Runtime host for the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * @return The host. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { + return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + } + /** + *
+   * Runtime host for the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { + return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + } + + public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private java.util.List persistentDirectories_; + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + @java.lang.Override + public java.util.List getPersistentDirectoriesList() { + return persistentDirectories_; + } + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + @java.lang.Override + public java.util.List + getPersistentDirectoriesOrBuilderList() { + return persistentDirectories_; + } + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + @java.lang.Override + public int getPersistentDirectoriesCount() { + return persistentDirectories_.size(); + } + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + return persistentDirectories_.get(index); + } + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { + return persistentDirectories_.get(index); + } + + public static final int CONTAINER_FIELD_NUMBER = 14; + private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; + /** + *
+   * Container that will be run for each workstation using this configuration
+   * when that workstation is started.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * @return Whether the container field is set. + */ + @java.lang.Override + public boolean hasContainer() { + return container_ != null; + } + /** + *
+   * Container that will be run for each workstation using this configuration
+   * when that workstation is started.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * @return The container. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { + return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + } + /** + *
+   * Container that will be run for each workstation using this configuration
+   * when that workstation is started.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { + return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + } + + public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17; + private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_; + /** + *
+   * Encrypts resources of this workstation configuration using a
+   * customer-managed encryption key.
+   * If specified, the boot disk of the Compute Engine instance and the
+   * persistent disk are encrypted using this encryption key. If
+   * this field is not set, the disks are encrypted using a generated
+   * key. Customer-managed encryption keys do not protect disk metadata.
+   * If the customer-managed encryption key is rotated, when the workstation
+   * instance is stopped, the system attempts to recreate the
+   * persistent disk with the new version of the key. Be sure to keep
+   * older versions of the key until the persistent disk is recreated.
+   * Otherwise, data on the persistent disk will be lost.
+   * If the encryption key is revoked, the workstation session will
+   * automatically be stopped within 7 hours.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * @return Whether the encryptionKey field is set. + */ + @java.lang.Override + public boolean hasEncryptionKey() { + return encryptionKey_ != null; + } + /** + *
+   * Encrypts resources of this workstation configuration using a
+   * customer-managed encryption key.
+   * If specified, the boot disk of the Compute Engine instance and the
+   * persistent disk are encrypted using this encryption key. If
+   * this field is not set, the disks are encrypted using a generated
+   * key. Customer-managed encryption keys do not protect disk metadata.
+   * If the customer-managed encryption key is rotated, when the workstation
+   * instance is stopped, the system attempts to recreate the
+   * persistent disk with the new version of the key. Be sure to keep
+   * older versions of the key until the persistent disk is recreated.
+   * Otherwise, data on the persistent disk will be lost.
+   * If the encryption key is revoked, the workstation session will
+   * automatically be stopped within 7 hours.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * @return The encryptionKey. + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + } + /** + *
+   * Encrypts resources of this workstation configuration using a
+   * customer-managed encryption key.
+   * If specified, the boot disk of the Compute Engine instance and the
+   * persistent disk are encrypted using this encryption key. If
+   * this field is not set, the disks are encrypted using a generated
+   * key. Customer-managed encryption keys do not protect disk metadata.
+   * If the customer-managed encryption key is rotated, when the workstation
+   * instance is stopped, the system attempts to recreate the
+   * persistent disk with the new version of the key. Be sure to keep
+   * older versions of the key until the persistent disk is recreated.
+   * Otherwise, data on the persistent disk will be lost.
+   * If the encryption key is revoked, the workstation session will
+   * automatically be stopped within 7 hours.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + } + + public static final int DEGRADED_FIELD_NUMBER = 15; + private boolean degraded_ = false; + /** + *
+   * Output only. Whether this resource is degraded, in which case it may
+   * require user action to restore full functionality. See also the
+   * `conditions` field.
+   * 
+ * + * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The degraded. + */ + @java.lang.Override + public boolean getDegraded() { + return degraded_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private java.util.List conditions_; + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.Status getConditions(int index) { + return conditions_.get(index); + } + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + } + if (reconciling_ != false) { + output.writeBool(4, reconciling_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); + if (createTime_ != null) { + output.writeMessage(6, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(7, getUpdateTime()); + } + if (deleteTime_ != null) { + output.writeMessage(8, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + if (idleTimeout_ != null) { + output.writeMessage(10, getIdleTimeout()); + } + if (runningTimeout_ != null) { + output.writeMessage(11, getRunningTimeout()); + } + if (host_ != null) { + output.writeMessage(12, getHost()); + } + for (int i = 0; i < persistentDirectories_.size(); i++) { + output.writeMessage(13, persistentDirectories_.get(i)); + } + if (container_ != null) { + output.writeMessage(14, getContainer()); + } + if (degraded_ != false) { + output.writeBool(15, degraded_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(16, conditions_.get(i)); + } + if (encryptionKey_ != null) { + output.writeMessage(17, getEncryptionKey()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 18); + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + } + if (reconciling_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + if (idleTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getIdleTimeout()); + } + if (runningTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getRunningTimeout()); + } + if (host_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getHost()); + } + for (int i = 0; i < persistentDirectories_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, persistentDirectories_.get(i)); + } + if (container_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getContainer()); + } + if (degraded_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, degraded_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, conditions_.get(i)); + } + if (encryptionKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getEncryptionKey()); + } + 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(18, labels__); + } + 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.workstations.v1.WorkstationConfig)) { + return super.equals(obj); + } + com.google.cloud.workstations.v1.WorkstationConfig other = (com.google.cloud.workstations.v1.WorkstationConfig) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (hasIdleTimeout() != other.hasIdleTimeout()) return false; + if (hasIdleTimeout()) { + if (!getIdleTimeout() + .equals(other.getIdleTimeout())) return false; + } + if (hasRunningTimeout() != other.hasRunningTimeout()) return false; + if (hasRunningTimeout()) { + if (!getRunningTimeout() + .equals(other.getRunningTimeout())) return false; + } + if (hasHost() != other.hasHost()) return false; + if (hasHost()) { + if (!getHost() + .equals(other.getHost())) return false; + } + if (!getPersistentDirectoriesList() + .equals(other.getPersistentDirectoriesList())) return false; + if (hasContainer() != other.hasContainer()) return false; + if (hasContainer()) { + if (!getContainer() + .equals(other.getContainer())) return false; + } + if (hasEncryptionKey() != other.hasEncryptionKey()) return false; + if (hasEncryptionKey()) { + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + } + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + RECONCILING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (hasIdleTimeout()) { + hash = (37 * hash) + IDLE_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getIdleTimeout().hashCode(); + } + if (hasRunningTimeout()) { + hash = (37 * hash) + RUNNING_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getRunningTimeout().hashCode(); + } + if (hasHost()) { + hash = (37 * hash) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + } + if (getPersistentDirectoriesCount() > 0) { + hash = (37 * hash) + PERSISTENT_DIRECTORIES_FIELD_NUMBER; + hash = (53 * hash) + getPersistentDirectoriesList().hashCode(); + } + if (hasContainer()) { + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + } + if (hasEncryptionKey()) { + hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionKey().hashCode(); + } + hash = (37 * hash) + DEGRADED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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 set of configuration options describing how a workstation will be run.
+   * Workstation configurations are intended to be shared across multiple
+   * workstations.
+   * 
+ * + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig) + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 18: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + case 18: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class); + } + + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + uid_ = ""; + reconciling_ = false; + internalGetMutableAnnotations().clear(); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + etag_ = ""; + idleTimeout_ = null; + if (idleTimeoutBuilder_ != null) { + idleTimeoutBuilder_.dispose(); + idleTimeoutBuilder_ = null; + } + runningTimeout_ = null; + if (runningTimeoutBuilder_ != null) { + runningTimeoutBuilder_.dispose(); + runningTimeoutBuilder_ = null; + } + host_ = null; + if (hostBuilder_ != null) { + hostBuilder_.dispose(); + hostBuilder_ = null; + } + if (persistentDirectoriesBuilder_ == null) { + persistentDirectories_ = java.util.Collections.emptyList(); + } else { + persistentDirectories_ = null; + persistentDirectoriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + container_ = null; + if (containerBuilder_ != null) { + containerBuilder_.dispose(); + containerBuilder_ = null; + } + encryptionKey_ = null; + if (encryptionKeyBuilder_ != null) { + encryptionKeyBuilder_.dispose(); + encryptionKeyBuilder_ = null; + } + degraded_ = false; + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig build() { + com.google.cloud.workstations.v1.WorkstationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig result = new com.google.cloud.workstations.v1.WorkstationConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig result) { + if (persistentDirectoriesBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.persistentDirectories_ = persistentDirectories_; + } else { + result.persistentDirectories_ = persistentDirectoriesBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.idleTimeout_ = idleTimeoutBuilder_ == null + ? idleTimeout_ + : idleTimeoutBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.runningTimeout_ = runningTimeoutBuilder_ == null + ? runningTimeout_ + : runningTimeoutBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.host_ = hostBuilder_ == null + ? host_ + : hostBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.container_ = containerBuilder_ == null + ? container_ + : containerBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.encryptionKey_ = encryptionKeyBuilder_ == null + ? encryptionKey_ + : encryptionKeyBuilder_.build(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.degraded_ = degraded_; + } + } + + @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.workstations.v1.WorkstationConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getReconciling() != false) { + setReconciling(other.getReconciling()); + } + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasIdleTimeout()) { + mergeIdleTimeout(other.getIdleTimeout()); + } + if (other.hasRunningTimeout()) { + mergeRunningTimeout(other.getRunningTimeout()); + } + if (other.hasHost()) { + mergeHost(other.getHost()); + } + if (persistentDirectoriesBuilder_ == null) { + if (!other.persistentDirectories_.isEmpty()) { + if (persistentDirectories_.isEmpty()) { + persistentDirectories_ = other.persistentDirectories_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.addAll(other.persistentDirectories_); + } + onChanged(); + } + } else { + if (!other.persistentDirectories_.isEmpty()) { + if (persistentDirectoriesBuilder_.isEmpty()) { + persistentDirectoriesBuilder_.dispose(); + persistentDirectoriesBuilder_ = null; + persistentDirectories_ = other.persistentDirectories_; + bitField0_ = (bitField0_ & ~0x00002000); + persistentDirectoriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPersistentDirectoriesFieldBuilder() : null; + } else { + persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_); + } + } + } + if (other.hasContainer()) { + mergeContainer(other.getContainer()); + } + if (other.hasEncryptionKey()) { + mergeEncryptionKey(other.getEncryptionKey()); + } + if (other.getDegraded() != false) { + setDegraded(other.getDegraded()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00020000); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: { + input.readMessage( + getIdleTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: { + input.readMessage( + getRunningTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: { + input.readMessage( + getHostFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 106: { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.parser(), + extensionRegistry); + if (persistentDirectoriesBuilder_ == null) { + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.add(m); + } else { + persistentDirectoriesBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: { + input.readMessage( + getContainerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 114 + case 120: { + degraded_ = input.readBool(); + bitField0_ |= 0x00010000; + break; + } // case 120 + case 130: { + com.google.rpc.Status m = + input.readMessage( + com.google.rpc.Status.parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 130 + case 138: { + input.readMessage( + getEncryptionKeyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 138 + case 146: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 146 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Full name of this resource.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Human-readable name for this resource.
+     * 
+ * + * string display_name = 2; + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Output only. A system-assigned unique identified for this resource.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean reconciling_ ; + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The reconciling to set. + * @return This builder for chaining. + */ + public Builder setReconciling(boolean value) { + + reconciling_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Output only. Indicates whether this resource is currently being updated to
+     * match its intended state.
+     * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearReconciling() { + bitField0_ = (bitField0_ & ~0x00000008); + reconciling_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetAnnotations().getMap().containsKey(key); + } + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + *
+     * Client-specified annotations.
+     * 
+ * + * map<string, string> annotations = 5; + */ + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + 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 labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + @java.lang.Override + public /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +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; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + 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"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + *
+     * Client-specified labels that are applied to the resource and that are also
+     * propagated to the underlying Compute Engine resources.
+     * 
+ * + * map<string, string> labels = 18; + */ + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + } + } + /** + *
+     * Output only. Time when this resource was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. Time when this resource was most recently updated.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000100); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + } + /** + *
+     * Output only. Time when this resource was soft-deleted.
+     * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString + getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + etag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+     * Checksum computed by the server. May be sent on update and delete requests
+     * to ensure that the client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9; + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.protobuf.Duration idleTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + * @return Whether the idleTimeout field is set. + */ + public boolean hasIdleTimeout() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + * @return The idleTimeout. + */ + public com.google.protobuf.Duration getIdleTimeout() { + if (idleTimeoutBuilder_ == null) { + return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + } else { + return idleTimeoutBuilder_.getMessage(); + } + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + public Builder setIdleTimeout(com.google.protobuf.Duration value) { + if (idleTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleTimeout_ = value; + } else { + idleTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + public Builder setIdleTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (idleTimeoutBuilder_ == null) { + idleTimeout_ = builderForValue.build(); + } else { + idleTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { + if (idleTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + idleTimeout_ != null && + idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getIdleTimeoutBuilder().mergeFrom(value); + } else { + idleTimeout_ = value; + } + } else { + idleTimeoutBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + public Builder clearIdleTimeout() { + bitField0_ = (bitField0_ & ~0x00000400); + idleTimeout_ = null; + if (idleTimeoutBuilder_ != null) { + idleTimeoutBuilder_.dispose(); + idleTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getIdleTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { + if (idleTimeoutBuilder_ != null) { + return idleTimeoutBuilder_.getMessageOrBuilder(); + } else { + return idleTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + } + } + /** + *
+     * How long to wait before automatically stopping an instance that hasn't
+     * received any user traffic. A value of 0 indicates that this instance
+     * should never time out due to idleness. Defaults to 20 minutes.
+     * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getIdleTimeoutFieldBuilder() { + if (idleTimeoutBuilder_ == null) { + idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getIdleTimeout(), + getParentForChildren(), + isClean()); + idleTimeout_ = null; + } + return idleTimeoutBuilder_; + } + + private com.google.protobuf.Duration runningTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_; + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + * @return Whether the runningTimeout field is set. + */ + public boolean hasRunningTimeout() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + * @return The runningTimeout. + */ + public com.google.protobuf.Duration getRunningTimeout() { + if (runningTimeoutBuilder_ == null) { + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + } else { + return runningTimeoutBuilder_.getMessage(); + } + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + public Builder setRunningTimeout(com.google.protobuf.Duration value) { + if (runningTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runningTimeout_ = value; + } else { + runningTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + public Builder setRunningTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (runningTimeoutBuilder_ == null) { + runningTimeout_ = builderForValue.build(); + } else { + runningTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { + if (runningTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + runningTimeout_ != null && + runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRunningTimeoutBuilder().mergeFrom(value); + } else { + runningTimeout_ = value; + } + } else { + runningTimeoutBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + public Builder clearRunningTimeout() { + bitField0_ = (bitField0_ & ~0x00000800); + runningTimeout_ = null; + if (runningTimeoutBuilder_ != null) { + runningTimeoutBuilder_.dispose(); + runningTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getRunningTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { + if (runningTimeoutBuilder_ != null) { + return runningTimeoutBuilder_.getMessageOrBuilder(); + } else { + return runningTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + } + } + /** + *
+     * How long to wait before automatically stopping a workstation after it
+     * started. A value of 0 indicates that workstations using this configuration
+     * should never time out. Must be greater than 0 and less than 24 hours if
+     * encryption_key is set. Defaults to 12 hours.
+     * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getRunningTimeoutFieldBuilder() { + if (runningTimeoutBuilder_ == null) { + runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRunningTimeout(), + getParentForChildren(), + isClean()); + runningTimeout_ = null; + } + return runningTimeoutBuilder_; + } + + private com.google.cloud.workstations.v1.WorkstationConfig.Host host_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> hostBuilder_; + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * @return Whether the host field is set. + */ + public boolean hasHost() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * @return The host. + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { + if (hostBuilder_ == null) { + return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + } else { + return hostBuilder_.getMessage(); + } + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + public Builder setHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { + if (hostBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + host_ = value; + } else { + hostBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + public Builder setHost( + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder builderForValue) { + if (hostBuilder_ == null) { + host_ = builderForValue.build(); + } else { + hostBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { + if (hostBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) && + host_ != null && + host_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { + getHostBuilder().mergeFrom(value); + } else { + host_ = value; + } + } else { + hostBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + public Builder clearHost() { + bitField0_ = (bitField0_ & ~0x00001000); + host_ = null; + if (hostBuilder_ != null) { + hostBuilder_.dispose(); + hostBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder getHostBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getHostFieldBuilder().getBuilder(); + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { + if (hostBuilder_ != null) { + return hostBuilder_.getMessageOrBuilder(); + } else { + return host_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + } + } + /** + *
+     * Runtime host for the workstation.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> + getHostFieldBuilder() { + if (hostBuilder_ == null) { + hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( + getHost(), + getParentForChildren(), + isClean()); + host_ = null; + } + return hostBuilder_; + } + + private java.util.List persistentDirectories_ = + java.util.Collections.emptyList(); + private void ensurePersistentDirectoriesIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; + + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public java.util.List getPersistentDirectoriesList() { + if (persistentDirectoriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(persistentDirectories_); + } else { + return persistentDirectoriesBuilder_.getMessageList(); + } + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public int getPersistentDirectoriesCount() { + if (persistentDirectoriesBuilder_ == null) { + return persistentDirectories_.size(); + } else { + return persistentDirectoriesBuilder_.getCount(); + } + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + if (persistentDirectoriesBuilder_ == null) { + return persistentDirectories_.get(index); + } else { + return persistentDirectoriesBuilder_.getMessage(index); + } + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder setPersistentDirectories( + int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { + if (persistentDirectoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.set(index, value); + onChanged(); + } else { + persistentDirectoriesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder setPersistentDirectories( + int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + if (persistentDirectoriesBuilder_ == null) { + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.set(index, builderForValue.build()); + onChanged(); + } else { + persistentDirectoriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder addPersistentDirectories(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { + if (persistentDirectoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.add(value); + onChanged(); + } else { + persistentDirectoriesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder addPersistentDirectories( + int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { + if (persistentDirectoriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.add(index, value); + onChanged(); + } else { + persistentDirectoriesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder addPersistentDirectories( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + if (persistentDirectoriesBuilder_ == null) { + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.add(builderForValue.build()); + onChanged(); + } else { + persistentDirectoriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder addPersistentDirectories( + int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + if (persistentDirectoriesBuilder_ == null) { + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.add(index, builderForValue.build()); + onChanged(); + } else { + persistentDirectoriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder addAllPersistentDirectories( + java.lang.Iterable values) { + if (persistentDirectoriesBuilder_ == null) { + ensurePersistentDirectoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, persistentDirectories_); + onChanged(); + } else { + persistentDirectoriesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder clearPersistentDirectories() { + if (persistentDirectoriesBuilder_ == null) { + persistentDirectories_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + persistentDirectoriesBuilder_.clear(); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public Builder removePersistentDirectories(int index) { + if (persistentDirectoriesBuilder_ == null) { + ensurePersistentDirectoriesIsMutable(); + persistentDirectories_.remove(index); + onChanged(); + } else { + persistentDirectoriesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( + int index) { + return getPersistentDirectoriesFieldBuilder().getBuilder(index); + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { + if (persistentDirectoriesBuilder_ == null) { + return persistentDirectories_.get(index); } else { + return persistentDirectoriesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public java.util.List + getPersistentDirectoriesOrBuilderList() { + if (persistentDirectoriesBuilder_ != null) { + return persistentDirectoriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(persistentDirectories_); + } + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( + int index) { + return getPersistentDirectoriesFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + } + /** + *
+     * Directories to persist across workstation sessions.
+     * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + public java.util.List + getPersistentDirectoriesBuilderList() { + return getPersistentDirectoriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + getPersistentDirectoriesFieldBuilder() { + if (persistentDirectoriesBuilder_ == null) { + persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( + persistentDirectories_, + ((bitField0_ & 0x00002000) != 0), + getParentForChildren(), + isClean()); + persistentDirectories_ = null; + } + return persistentDirectoriesBuilder_; + } + + private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> containerBuilder_; + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * @return Whether the container field is set. + */ + public boolean hasContainer() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * @return The container. + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { + if (containerBuilder_ == null) { + return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + } else { + return containerBuilder_.getMessage(); + } + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + public Builder setContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) { + if (containerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + container_ = value; + } else { + containerBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + public Builder setContainer( + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder builderForValue) { + if (containerBuilder_ == null) { + container_ = builderForValue.build(); + } else { + containerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + public Builder mergeContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) { + if (containerBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + container_ != null && + container_ != com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) { + getContainerBuilder().mergeFrom(value); + } else { + container_ = value; + } + } else { + containerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + public Builder clearContainer() { + bitField0_ = (bitField0_ & ~0x00004000); + container_ = null; + if (containerBuilder_ != null) { + containerBuilder_.dispose(); + containerBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder getContainerBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getContainerFieldBuilder().getBuilder(); + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { + if (containerBuilder_ != null) { + return containerBuilder_.getMessageOrBuilder(); + } else { + return container_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + } + } + /** + *
+     * Container that will be run for each workstation using this configuration
+     * when that workstation is started.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> + getContainerFieldBuilder() { + if (containerBuilder_ == null) { + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>( + getContainer(), + getParentForChildren(), + isClean()); + container_ = null; + } + return containerBuilder_; + } + + private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_; + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * @return Whether the encryptionKey field is set. + */ + public boolean hasEncryptionKey() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * @return The encryptionKey. + */ + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + if (encryptionKeyBuilder_ == null) { + return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + } else { + return encryptionKeyBuilder_.getMessage(); + } + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + if (encryptionKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionKey_ = value; + } else { + encryptionKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + public Builder setEncryptionKey( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { + if (encryptionKeyBuilder_ == null) { + encryptionKey_ = builderForValue.build(); + } else { + encryptionKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + if (encryptionKeyBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + encryptionKey_ != null && + encryptionKey_ != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { + getEncryptionKeyBuilder().mergeFrom(value); + } else { + encryptionKey_ = value; + } + } else { + encryptionKeyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + public Builder clearEncryptionKey() { + bitField0_ = (bitField0_ & ~0x00008000); + encryptionKey_ = null; + if (encryptionKeyBuilder_ != null) { + encryptionKeyBuilder_.dispose(); + encryptionKeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getEncryptionKeyFieldBuilder().getBuilder(); + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + if (encryptionKeyBuilder_ != null) { + return encryptionKeyBuilder_.getMessageOrBuilder(); + } else { + return encryptionKey_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + } + } + /** + *
+     * Encrypts resources of this workstation configuration using a
+     * customer-managed encryption key.
+     * If specified, the boot disk of the Compute Engine instance and the
+     * persistent disk are encrypted using this encryption key. If
+     * this field is not set, the disks are encrypted using a generated
+     * key. Customer-managed encryption keys do not protect disk metadata.
+     * If the customer-managed encryption key is rotated, when the workstation
+     * instance is stopped, the system attempts to recreate the
+     * persistent disk with the new version of the key. Be sure to keep
+     * older versions of the key until the persistent disk is recreated.
+     * Otherwise, data on the persistent disk will be lost.
+     * If the encryption key is revoked, the workstation session will
+     * automatically be stopped within 7 hours.
+     * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + getEncryptionKeyFieldBuilder() { + if (encryptionKeyBuilder_ == null) { + encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), + getParentForChildren(), + isClean()); + encryptionKey_ = null; + } + return encryptionKeyBuilder_; + } + + private boolean degraded_ ; + /** + *
+     * Output only. Whether this resource is degraded, in which case it may
+     * require user action to restore full functionality. See also the
+     * `conditions` field.
+     * 
+ * + * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The degraded. + */ + @java.lang.Override + public boolean getDegraded() { + return degraded_; + } + /** + *
+     * Output only. Whether this resource is degraded, in which case it may
+     * require user action to restore full functionality. See also the
+     * `conditions` field.
+     * 
+ * + * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The degraded to set. + * @return This builder for chaining. + */ + public Builder setDegraded(boolean value) { + + degraded_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * Output only. Whether this resource is degraded, in which case it may
+     * require user action to restore full functionality. See also the
+     * `conditions` field.
+     * 
+ * + * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearDegraded() { + bitField0_ = (bitField0_ & ~0x00010000); + degraded_ = false; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00020000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.rpc.Status value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions(com.google.rpc.Status value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.rpc.Status value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); + } + /** + *
+     * Output only. Status conditions describing the current resource state.
+     * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00020000) != 0), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @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.workstations.v1.WorkstationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig) + private static final com.google.cloud.workstations.v1.WorkstationConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig(); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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.workstations.v1.WorkstationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java new file mode 100644 index 000000000000..a6543889cb78 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java @@ -0,0 +1,269 @@ +/* + * 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.workstations.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 WorkstationConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String workstationCluster; + private final String workstationConfig; + + @Deprecated + protected WorkstationConfigName() { + project = null; + location = null; + workstationCluster = null; + workstationConfig = null; + } + + private WorkstationConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + workstationCluster = Preconditions.checkNotNull(builder.getWorkstationCluster()); + workstationConfig = Preconditions.checkNotNull(builder.getWorkstationConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getWorkstationCluster() { + return workstationCluster; + } + + public String getWorkstationConfig() { + return workstationConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static WorkstationConfigName of( + String project, String location, String workstationCluster, String workstationConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setWorkstationCluster(workstationCluster) + .setWorkstationConfig(workstationConfig) + .build(); + } + + public static String format( + String project, String location, String workstationCluster, String workstationConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setWorkstationCluster(workstationCluster) + .setWorkstationConfig(workstationConfig) + .build() + .toString(); + } + + public static WorkstationConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG.validatedMatch( + formattedString, "WorkstationConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("workstation_cluster"), + matchMap.get("workstation_config")); + } + + 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 (WorkstationConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG.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); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (workstationCluster != null) { + fieldMapBuilder.put("workstation_cluster", workstationCluster); + } + if (workstationConfig != null) { + fieldMapBuilder.put("workstation_config", workstationConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG.instantiate( + "project", + project, + "location", + location, + "workstation_cluster", + workstationCluster, + "workstation_config", + workstationConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + WorkstationConfigName that = ((WorkstationConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.workstationCluster, that.workstationCluster) + && Objects.equals(this.workstationConfig, that.workstationConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(workstationCluster); + h *= 1000003; + h ^= Objects.hashCode(workstationConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}. + */ + public static class Builder { + private String project; + private String location; + private String workstationCluster; + private String workstationConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getWorkstationCluster() { + return workstationCluster; + } + + public String getWorkstationConfig() { + return workstationConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setWorkstationCluster(String workstationCluster) { + this.workstationCluster = workstationCluster; + return this; + } + + public Builder setWorkstationConfig(String workstationConfig) { + this.workstationConfig = workstationConfig; + return this; + } + + private Builder(WorkstationConfigName workstationConfigName) { + this.project = workstationConfigName.project; + this.location = workstationConfigName.location; + this.workstationCluster = workstationConfigName.workstationCluster; + this.workstationConfig = workstationConfigName.workstationConfig; + } + + public WorkstationConfigName build() { + return new WorkstationConfigName(this); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java new file mode 100644 index 000000000000..0e8cf8d1ce05 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java @@ -0,0 +1,585 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface WorkstationConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + java.lang.String getUid(); + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + com.google.protobuf.ByteString + getUidBytes(); + + /** + *
+   * Output only. Indicates whether this resource is currently being updated to
+   * match its intended state.
+   * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + boolean getReconciling(); + + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + int getAnnotationsCount(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + int getLabelsCount(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 18; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * How long to wait before automatically stopping an instance that hasn't
+   * received any user traffic. A value of 0 indicates that this instance
+   * should never time out due to idleness. Defaults to 20 minutes.
+   * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + * @return Whether the idleTimeout field is set. + */ + boolean hasIdleTimeout(); + /** + *
+   * How long to wait before automatically stopping an instance that hasn't
+   * received any user traffic. A value of 0 indicates that this instance
+   * should never time out due to idleness. Defaults to 20 minutes.
+   * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + * @return The idleTimeout. + */ + com.google.protobuf.Duration getIdleTimeout(); + /** + *
+   * How long to wait before automatically stopping an instance that hasn't
+   * received any user traffic. A value of 0 indicates that this instance
+   * should never time out due to idleness. Defaults to 20 minutes.
+   * 
+ * + * .google.protobuf.Duration idle_timeout = 10; + */ + com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder(); + + /** + *
+   * How long to wait before automatically stopping a workstation after it
+   * started. A value of 0 indicates that workstations using this configuration
+   * should never time out. Must be greater than 0 and less than 24 hours if
+   * encryption_key is set. Defaults to 12 hours.
+   * 
+ * + * .google.protobuf.Duration running_timeout = 11; + * @return Whether the runningTimeout field is set. + */ + boolean hasRunningTimeout(); + /** + *
+   * How long to wait before automatically stopping a workstation after it
+   * started. A value of 0 indicates that workstations using this configuration
+   * should never time out. Must be greater than 0 and less than 24 hours if
+   * encryption_key is set. Defaults to 12 hours.
+   * 
+ * + * .google.protobuf.Duration running_timeout = 11; + * @return The runningTimeout. + */ + com.google.protobuf.Duration getRunningTimeout(); + /** + *
+   * How long to wait before automatically stopping a workstation after it
+   * started. A value of 0 indicates that workstations using this configuration
+   * should never time out. Must be greater than 0 and less than 24 hours if
+   * encryption_key is set. Defaults to 12 hours.
+   * 
+ * + * .google.protobuf.Duration running_timeout = 11; + */ + com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder(); + + /** + *
+   * Runtime host for the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * @return Whether the host field is set. + */ + boolean hasHost(); + /** + *
+   * Runtime host for the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * @return The host. + */ + com.google.cloud.workstations.v1.WorkstationConfig.Host getHost(); + /** + *
+   * Runtime host for the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + */ + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder(); + + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + java.util.List + getPersistentDirectoriesList(); + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + int getPersistentDirectoriesCount(); + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + java.util.List + getPersistentDirectoriesOrBuilderList(); + /** + *
+   * Directories to persist across workstation sessions.
+   * 
+ * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + */ + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index); + + /** + *
+   * Container that will be run for each workstation using this configuration
+   * when that workstation is started.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * @return Whether the container field is set. + */ + boolean hasContainer(); + /** + *
+   * Container that will be run for each workstation using this configuration
+   * when that workstation is started.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * @return The container. + */ + com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer(); + /** + *
+   * Container that will be run for each workstation using this configuration
+   * when that workstation is started.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + */ + com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder(); + + /** + *
+   * Encrypts resources of this workstation configuration using a
+   * customer-managed encryption key.
+   * If specified, the boot disk of the Compute Engine instance and the
+   * persistent disk are encrypted using this encryption key. If
+   * this field is not set, the disks are encrypted using a generated
+   * key. Customer-managed encryption keys do not protect disk metadata.
+   * If the customer-managed encryption key is rotated, when the workstation
+   * instance is stopped, the system attempts to recreate the
+   * persistent disk with the new version of the key. Be sure to keep
+   * older versions of the key until the persistent disk is recreated.
+   * Otherwise, data on the persistent disk will be lost.
+   * If the encryption key is revoked, the workstation session will
+   * automatically be stopped within 7 hours.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * @return Whether the encryptionKey field is set. + */ + boolean hasEncryptionKey(); + /** + *
+   * Encrypts resources of this workstation configuration using a
+   * customer-managed encryption key.
+   * If specified, the boot disk of the Compute Engine instance and the
+   * persistent disk are encrypted using this encryption key. If
+   * this field is not set, the disks are encrypted using a generated
+   * key. Customer-managed encryption keys do not protect disk metadata.
+   * If the customer-managed encryption key is rotated, when the workstation
+   * instance is stopped, the system attempts to recreate the
+   * persistent disk with the new version of the key. Be sure to keep
+   * older versions of the key until the persistent disk is recreated.
+   * Otherwise, data on the persistent disk will be lost.
+   * If the encryption key is revoked, the workstation session will
+   * automatically be stopped within 7 hours.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * @return The encryptionKey. + */ + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); + /** + *
+   * Encrypts resources of this workstation configuration using a
+   * customer-managed encryption key.
+   * If specified, the boot disk of the Compute Engine instance and the
+   * persistent disk are encrypted using this encryption key. If
+   * this field is not set, the disks are encrypted using a generated
+   * key. Customer-managed encryption keys do not protect disk metadata.
+   * If the customer-managed encryption key is rotated, when the workstation
+   * instance is stopped, the system attempts to recreate the
+   * persistent disk with the new version of the key. Be sure to keep
+   * older versions of the key until the persistent disk is recreated.
+   * Otherwise, data on the persistent disk will be lost.
+   * If the encryption key is revoked, the workstation session will
+   * automatically be stopped within 7 hours.
+   * 
+ * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + */ + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + + /** + *
+   * Output only. Whether this resource is degraded, in which case it may
+   * require user action to restore full functionality. See also the
+   * `conditions` field.
+   * 
+ * + * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The degraded. + */ + boolean getDegraded(); + + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsList(); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.Status getConditions(int index); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getConditionsCount(); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+   * Output only. Status conditions describing the current resource state.
+   * 
+ * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java new file mode 100644 index 000000000000..f9a9d91df35d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java @@ -0,0 +1,308 @@ +/* + * 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.workstations.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 WorkstationName implements ResourceName { + private static final PathTemplate + PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG_WORKSTATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}/workstations/{workstation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String workstationCluster; + private final String workstationConfig; + private final String workstation; + + @Deprecated + protected WorkstationName() { + project = null; + location = null; + workstationCluster = null; + workstationConfig = null; + workstation = null; + } + + private WorkstationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + workstationCluster = Preconditions.checkNotNull(builder.getWorkstationCluster()); + workstationConfig = Preconditions.checkNotNull(builder.getWorkstationConfig()); + workstation = Preconditions.checkNotNull(builder.getWorkstation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getWorkstationCluster() { + return workstationCluster; + } + + public String getWorkstationConfig() { + return workstationConfig; + } + + public String getWorkstation() { + return workstation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static WorkstationName of( + String project, + String location, + String workstationCluster, + String workstationConfig, + String workstation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setWorkstationCluster(workstationCluster) + .setWorkstationConfig(workstationConfig) + .setWorkstation(workstation) + .build(); + } + + public static String format( + String project, + String location, + String workstationCluster, + String workstationConfig, + String workstation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setWorkstationCluster(workstationCluster) + .setWorkstationConfig(workstationConfig) + .setWorkstation(workstation) + .build() + .toString(); + } + + public static WorkstationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG_WORKSTATION.validatedMatch( + formattedString, "WorkstationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("workstation_cluster"), + matchMap.get("workstation_config"), + matchMap.get("workstation")); + } + + 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 (WorkstationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG_WORKSTATION.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); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (workstationCluster != null) { + fieldMapBuilder.put("workstation_cluster", workstationCluster); + } + if (workstationConfig != null) { + fieldMapBuilder.put("workstation_config", workstationConfig); + } + if (workstation != null) { + fieldMapBuilder.put("workstation", workstation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_WORKSTATION_CLUSTER_WORKSTATION_CONFIG_WORKSTATION.instantiate( + "project", + project, + "location", + location, + "workstation_cluster", + workstationCluster, + "workstation_config", + workstationConfig, + "workstation", + workstation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + WorkstationName that = ((WorkstationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.workstationCluster, that.workstationCluster) + && Objects.equals(this.workstationConfig, that.workstationConfig) + && Objects.equals(this.workstation, that.workstation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(workstationCluster); + h *= 1000003; + h ^= Objects.hashCode(workstationConfig); + h *= 1000003; + h ^= Objects.hashCode(workstation); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}/workstations/{workstation}. + */ + public static class Builder { + private String project; + private String location; + private String workstationCluster; + private String workstationConfig; + private String workstation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getWorkstationCluster() { + return workstationCluster; + } + + public String getWorkstationConfig() { + return workstationConfig; + } + + public String getWorkstation() { + return workstation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setWorkstationCluster(String workstationCluster) { + this.workstationCluster = workstationCluster; + return this; + } + + public Builder setWorkstationConfig(String workstationConfig) { + this.workstationConfig = workstationConfig; + return this; + } + + public Builder setWorkstation(String workstation) { + this.workstation = workstation; + return this; + } + + private Builder(WorkstationName workstationName) { + this.project = workstationName.project; + this.location = workstationName.location; + this.workstationCluster = workstationName.workstationCluster; + this.workstationConfig = workstationName.workstationConfig; + this.workstation = workstationName.workstation; + } + + public WorkstationName build() { + return new WorkstationName(this); + } + } +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java new file mode 100644 index 000000000000..2b722398eb46 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java @@ -0,0 +1,343 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface WorkstationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.Workstation) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Full name of this resource.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + *
+   * Human-readable name for this resource.
+   * 
+ * + * string display_name = 2; + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The uid. + */ + java.lang.String getUid(); + /** + *
+   * Output only. A system-assigned unique identified for this resource.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for uid. + */ + com.google.protobuf.ByteString + getUidBytes(); + + /** + *
+   * Output only. Indicates whether this resource is currently being updated to
+   * match its intended state.
+   * 
+ * + * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The reconciling. + */ + boolean getReconciling(); + + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + int getAnnotationsCount(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAnnotations(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.util.Map + getAnnotationsMap(); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + /* nullable */ +java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Client-specified annotations.
+   * 
+ * + * map<string, string> annotations = 5; + */ + java.lang.String getAnnotationsOrThrow( + java.lang.String key); + + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + int getLabelsCount(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Client-specified labels that are applied to the resource and that are also
+   * propagated to the underlying Compute Engine resources.
+   * 
+ * + * map<string, string> labels = 13; + */ + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. Time when this resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Output only. Time when this resource was most recently updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + *
+   * Output only. Time when this resource was soft-deleted.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The etag. + */ + java.lang.String getEtag(); + /** + *
+   * Checksum computed by the server. May be sent on update and delete requests
+   * to ensure that the client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + *
+   * Output only. Current state of the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + *
+   * Output only. Current state of the workstation.
+   * 
+ * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + com.google.cloud.workstations.v1.Workstation.State getState(); + + /** + *
+   * Output only. Host to which clients can send HTTPS traffic that will be
+   * received by the workstation. Authorized traffic will be received to the
+   * workstation as HTTP on port 80. To send traffic to a different port,
+   * clients may prefix the host with the destination port in the format
+   * `{port}-{host}`.
+   * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The host. + */ + java.lang.String getHost(); + /** + *
+   * Output only. Host to which clients can send HTTPS traffic that will be
+   * received by the workstation. Authorized traffic will be received to the
+   * workstation as HTTP on port 80. To send traffic to a different port,
+   * clients may prefix the host with the destination port in the format
+   * `{port}-{host}`.
+   * 
+ * + * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java new file mode 100644 index 000000000000..486fc905a29e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java @@ -0,0 +1,947 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public final class WorkstationsProto { + private WorkstationsProto() {} + 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_workstations_v1_WorkstationCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" + + "ons.proto\022\034google.cloud.workstations.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032 google/protobuf" + + "/field_mask.proto\032\037google/protobuf/times" + + "tamp.proto\032\027google/rpc/status.proto\"\241\010\n\022" + + "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" + + "lay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013reco" + + "nciling\030\004 \001(\010B\003\340A\003\022V\n\013annotations\030\005 \003(\0132" + + "A.google.cloud.workstations.v1.Workstati" + + "onCluster.AnnotationsEntry\022L\n\006labels\030\017 \003" + + "(\0132<.google.cloud.workstations.v1.Workst" + + "ationCluster.LabelsEntry\0224\n\013create_time\030" + + "\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\t \001(\t" + + "\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027\n\nsubnetwork\030\013 \001" + + "(\tB\003\340A\005\022e\n\026private_cluster_config\030\014 \001(\0132" + + "E.google.cloud.workstations.v1.Workstati" + + "onCluster.PrivateClusterConfig\022\025\n\010degrad" + + "ed\030\r \001(\010B\003\340A\003\022+\n\nconditions\030\016 \003(\0132\022.goog" + + "le.rpc.StatusB\003\340A\003\032\232\001\n\024PrivateClusterCon" + + "fig\022$\n\027enable_private_endpoint\030\001 \001(\010B\003\340A" + + "\005\022\035\n\020cluster_hostname\030\002 \001(\tB\003\340A\003\022#\n\026serv" + + "ice_attachment_uri\030\003 \001(\tB\003\340A\003\022\030\n\020allowed" + + "_projects\030\004 \003(\t\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\212\001\352A\206" + + "\001\n.workstations.googleapis.com/Workstati" + + "onCluster\022Qprojects/{project}/locations/" + + "{location}/workstationClusters/{workstat" + + "ion_cluster}R\001\001\"\326\025\n\021WorkstationConfig\022\014\n" + + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid" + + "\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022U\n" + + "\013annotations\030\005 \003(\0132@.google.cloud.workst" + + "ations.v1.WorkstationConfig.AnnotationsE" + + "ntry\022K\n\006labels\030\022 \003(\0132;.google.cloud.work" + + "stations.v1.WorkstationConfig.LabelsEntr" + + "y\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_" + + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022\014\n\004etag\030\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132" + + "\031.google.protobuf.Duration\0222\n\017running_ti" + + "meout\030\013 \001(\0132\031.google.protobuf.Duration\022B" + + "\n\004host\030\014 \001(\01324.google.cloud.workstations" + + ".v1.WorkstationConfig.Host\022c\n\026persistent" + + "_directories\030\r \003(\0132C.google.cloud.workst" + + "ations.v1.WorkstationConfig.PersistentDi" + + "rectory\022L\n\tcontainer\030\016 \001(\01329.google.clou" + + "d.workstations.v1.WorkstationConfig.Cont" + + "ainer\022]\n\016encryption_key\030\021 \001(\0132E.google.c" + + "loud.workstations.v1.WorkstationConfig.C" + + "ustomerEncryptionKey\022\025\n\010degraded\030\017 \001(\010B\003" + + "\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc.Sta" + + "tusB\003\340A\003\032\356\005\n\004Host\022X\n\014gce_instance\030\001 \001(\0132" + + "@.google.cloud.workstations.v1.Workstati" + + "onConfig.Host.GceInstanceH\000\032\201\005\n\013GceInsta" + + "nce\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017service_acc" + + "ount\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool_size\030\005 " + + "\001(\005\022#\n\033disable_public_ip_addresses\030\006 \001(\010" + + "\022$\n\034enable_nested_virtualization\030\007 \001(\010\022|" + + "\n\030shielded_instance_config\030\010 \001(\0132Z.googl" + + "e.cloud.workstations.v1.WorkstationConfi" + + "g.Host.GceInstance.GceShieldedInstanceCo" + + "nfig\022\204\001\n\034confidential_instance_config\030\n " + + "\001(\0132^.google.cloud.workstations.v1.Works" + + "tationConfig.Host.GceInstance.GceConfide" + + "ntialInstanceConfig\022\031\n\021boot_disk_size_gb" + + "\030\t \001(\005\032q\n\031GceShieldedInstanceConfig\022\032\n\022e" + + "nable_secure_boot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002" + + " \001(\010\022#\n\033enable_integrity_monitoring\030\003 \001(" + + "\010\032D\n\035GceConfidentialInstanceConfig\022#\n\033en" + + "able_confidential_compute\030\001 \001(\010B\010\n\006confi" + + "g\032\347\003\n\023PersistentDirectory\022o\n\006gce_pd\030\002 \001(" + + "\0132].google.cloud.workstations.v1.Worksta" + + "tionConfig.PersistentDirectory.GceRegion" + + "alPersistentDiskH\000\022\022\n\nmount_path\030\001 \001(\t\032\270" + + "\002\n\031GceRegionalPersistentDisk\022\017\n\007size_gb\030" + + "\001 \001(\005\022\017\n\007fs_type\030\002 \001(\t\022\021\n\tdisk_type\030\003 \001(" + + "\t\022\027\n\017source_snapshot\030\005 \001(\t\022\203\001\n\016reclaim_p" + + "olicy\030\004 \001(\0162k.google.cloud.workstations." + + "v1.WorkstationConfig.PersistentDirectory" + + ".GceRegionalPersistentDisk.ReclaimPolicy" + + "\"G\n\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSP" + + "ECIFIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016dir" + + "ectory_type\032\340\001\n\tContainer\022\r\n\005image\030\001 \001(\t" + + "\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022O\n\003env\030\004" + + " \003(\0132B.google.cloud.workstations.v1.Work" + + "stationConfig.Container.EnvEntry\022\023\n\013work" + + "ing_dir\030\005 \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010En" + + "vEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I" + + "\n\025CustomerEncryptionKey\022\017\n\007kms_key\030\001 \001(\t" + + "\022\037\n\027kms_key_service_account\030\002 \001(\t\0322\n\020Ann" + + "otationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001:\261\001\352A\255\001\n-workstations.google" + + "apis.com/WorkstationConfig\022yprojects/{pr" + + "oject}/locations/{location}/workstationC" + + "lusters/{workstation_cluster}/workstatio" + + "nConfigs/{workstation_config}R\001\001\"\230\007\n\013Wor" + + "kstation\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002" + + " \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 " + + "\001(\010B\003\340A\003\022O\n\013annotations\030\005 \003(\0132:.google.c" + + "loud.workstations.v1.Workstation.Annotat" + + "ionsEntry\022E\n\006labels\030\r \003(\01325.google.cloud" + + ".workstations.v1.Workstation.LabelsEntry" + + "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\014\n\004etag\030\t \001(\t\022C\n\005state\030\n \001(\0162/.google" + + ".cloud.workstations.v1.Workstation.State" + + "B\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016S" + + "TATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016ST" + + "ATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352A\303\001" + + "\n\'workstations.googleapis.com/Workstatio" + + "n\022\224\001projects/{project}/locations/{locati" + + "on}/workstationClusters/{workstation_clu" + + "ster}/workstationConfigs/{workstation_co" + + "nfig}/workstations/{workstation}R\001\001\"d\n\034G" + + "etWorkstationClusterRequest\022D\n\004name\030\001 \001(" + + "\tB6\340A\002\372A0\n.workstations.googleapis.com/W" + + "orkstationCluster\"\217\001\n\036ListWorkstationClu" + + "stersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.wo" + + "rkstations.googleapis.com/WorkstationClu" + + "ster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\237\001\n\037ListWorkstationClustersResponse\022" + + "N\n\024workstation_clusters\030\001 \003(\01320.google.c" + + "loud.workstations.v1.WorkstationCluster\022" + + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + + "\003 \003(\t\"\371\001\n\037CreateWorkstationClusterReques" + + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workstations." + + "googleapis.com/WorkstationCluster\022#\n\026wor" + + "kstation_cluster_id\030\002 \001(\tB\003\340A\002\022R\n\023workst" + + "ation_cluster\030\003 \001(\01320.google.cloud.works" + + "tations.v1.WorkstationClusterB\003\340A\002\022\025\n\rva" + + "lidate_only\030\004 \001(\010\"\331\001\n\037UpdateWorkstationC" + + "lusterRequest\022R\n\023workstation_cluster\030\001 \001" + + "(\01320.google.cloud.workstations.v1.Workst" + + "ationClusterB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\022\025\n\rvalid" + + "ate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\"\233\001" + + "\n\037DeleteWorkstationClusterRequest\022D\n\004nam" + + "e\030\001 \001(\tB6\340A\002\372A0\n.workstations.googleapis" + + ".com/WorkstationCluster\022\025\n\rvalidate_only" + + "\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005force\030\004 \001(\010\"b\n\033G" + + "etWorkstationConfigRequest\022C\n\004name\030\001 \001(\t" + + "B5\340A\002\372A/\n-workstations.googleapis.com/Wo" + + "rkstationConfig\"\216\001\n\035ListWorkstationConfi" + + "gsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.works" + + "tations.googleapis.com/WorkstationCluste" + + "r\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\"\234\001\n\036ListWorkstationConfigsResponse\022L\n\023w" + + "orkstation_configs\030\001 \003(\0132/.google.cloud." + + "workstations.v1.WorkstationConfig\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + + "\224\001\n#ListUsableWorkstationConfigsRequest\022" + + "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.workstations.go" + + "ogleapis.com/WorkstationCluster\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n$ListU" + + "sableWorkstationConfigsResponse\022L\n\023works" + + "tation_configs\030\001 \003(\0132/.google.cloud.work" + + "stations.v1.WorkstationConfig\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\365\001\n\036" + + "CreateWorkstationConfigRequest\022F\n\006parent" + + "\030\001 \001(\tB6\340A\002\372A0\n.workstations.googleapis." + + "com/WorkstationCluster\022\"\n\025workstation_co" + + "nfig_id\030\002 \001(\tB\003\340A\002\022P\n\022workstation_config" + + "\030\003 \001(\0132/.google.cloud.workstations.v1.Wo" + + "rkstationConfigB\003\340A\002\022\025\n\rvalidate_only\030\004 " + + "\001(\010\"\326\001\n\036UpdateWorkstationConfigRequest\022P" + + "\n\022workstation_config\030\001 \001(\0132/.google.clou" + + "d.workstations.v1.WorkstationConfigB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n" + + "\rallow_missing\030\004 \001(\010\"\231\001\n\036DeleteWorkstati" + + "onConfigRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-w" + + "orkstations.googleapis.com/WorkstationCo" + + "nfig\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(" + + "\t\022\r\n\005force\030\004 \001(\010\"V\n\025GetWorkstationReques" + + "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstations.go" + + "ogleapis.com/Workstation\"\207\001\n\027ListWorksta" + + "tionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wo" + + "rkstations.googleapis.com/WorkstationCon" + + "fig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"\211\001\n\030ListWorkstationsResponse\022?\n\014works" + + "tations\030\001 \003(\0132).google.cloud.workstation" + + "s.v1.Workstation\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWor" + + "kstationsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/" + + "\n-workstations.googleapis.com/Workstatio" + + "nConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\217\001\n\036ListUsableWorkstationsRespons" + + "e\022?\n\014workstations\030\001 \003(\0132).google.cloud.w" + + "orkstations.v1.Workstation\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\332\001\n\030Cre" + + "ateWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\n-workstations.googleapis.com/Works" + + "tationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A" + + "\002\022C\n\013workstation\030\003 \001(\0132).google.cloud.wo" + + "rkstations.v1.WorkstationB\003\340A\002\022\025\n\rvalida" + + "te_only\030\004 \001(\010\"\303\001\n\030UpdateWorkstationReque" + + "st\022C\n\013workstation\030\001 \001(\0132).google.cloud.w" + + "orkstations.v1.WorkstationB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" + + "ssing\030\004 \001(\010\"~\n\030DeleteWorkstationRequest\022" + + "=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstations.goog" + + "leapis.com/Workstation\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorkstationR" + + "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" + + "ns.googleapis.com/Workstation\022\025\n\rvalidat" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026StopWorkst" + + "ationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'work" + + "stations.googleapis.com/Workstation\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\315\001\n\032Gen" + + "erateAccessTokenRequest\0221\n\013expire_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampH\000\022(\n\003tt" + + "l\030\003 \001(\0132\031.google.protobuf.DurationH\000\022D\n\013" + + "workstation\030\001 \001(\tB/\340A\002\372A)\n\'workstations." + + "googleapis.com/WorkstationB\014\n\nexpiration" + + "\"d\n\033GenerateAccessTokenResponse\022\024\n\014acces" + + "s_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\"\200\002\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" + + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + + "\0032\233*\n\014Workstations\022\315\001\n\025GetWorkstationClu" + + "ster\022:.google.cloud.workstations.v1.GetW" + + "orkstationClusterRequest\0320.google.cloud." + + "workstations.v1.WorkstationCluster\"F\202\323\344\223" + + "\0029\0227/v1/{name=projects/*/locations/*/wor" + + "kstationClusters/*}\332A\004name\022\340\001\n\027ListWorks" + + "tationClusters\022<.google.cloud.workstatio" + + "ns.v1.ListWorkstationClustersRequest\032=.g" + + "oogle.cloud.workstations.v1.ListWorkstat" + + "ionClustersResponse\"H\202\323\344\223\0029\0227/v1/{parent" + + "=projects/*/locations/*}/workstationClus" + + "ters\332A\006parent\022\255\002\n\030CreateWorkstationClust" + + "er\022=.google.cloud.workstations.v1.Create" + + "WorkstationClusterRequest\032\035.google.longr" + + "unning.Operation\"\262\001\202\323\344\223\002N\"7/v1/{parent=p" + + "rojects/*/locations/*}/workstationCluste" + + "rs:\023workstation_cluster\332A1parent,worksta" + + "tion_cluster,workstation_cluster_id\312A\'\n\022" + + "WorkstationCluster\022\021OperationMetadata\022\257\002" + + "\n\030UpdateWorkstationCluster\022=.google.clou" + + "d.workstations.v1.UpdateWorkstationClust" + + "erRequest\032\035.google.longrunning.Operation" + + "\"\264\001\202\323\344\223\002b2K/v1/{workstation_cluster.name" + + "=projects/*/locations/*/workstationClust" + + "ers/*}:\023workstation_cluster\332A\037workstatio" + + "n_cluster,update_mask\312A\'\n\022WorkstationClu" + + "ster\022\021OperationMetadata\022\352\001\n\030DeleteWorkst" + + "ationCluster\022=.google.cloud.workstations" + + ".v1.DeleteWorkstationClusterRequest\032\035.go" + + "ogle.longrunning.Operation\"p\202\323\344\223\0029*7/v1/" + + "{name=projects/*/locations/*/workstation" + + "Clusters/*}\332A\004name\312A\'\n\022WorkstationCluste" + + "r\022\021OperationMetadata\022\337\001\n\024GetWorkstationC" + + "onfig\0229.google.cloud.workstations.v1.Get" + + "WorkstationConfigRequest\032/.google.cloud." + + "workstations.v1.WorkstationConfig\"[\202\323\344\223\002" + + "N\022L/v1/{name=projects/*/locations/*/work" + + "stationClusters/*/workstationConfigs/*}\332" + + "A\004name\022\362\001\n\026ListWorkstationConfigs\022;.goog" + + "le.cloud.workstations.v1.ListWorkstation" + + "ConfigsRequest\032<.google.cloud.workstatio" + + "ns.v1.ListWorkstationConfigsResponse\"]\202\323" + + "\344\223\002N\022L/v1/{parent=projects/*/locations/*" + + "/workstationClusters/*}/workstationConfi" + + "gs\332A\006parent\022\217\002\n\034ListUsableWorkstationCon" + + "figs\022A.google.cloud.workstations.v1.List" + + "UsableWorkstationConfigsRequest\032B.google" + + ".cloud.workstations.v1.ListUsableWorksta" + + "tionConfigsResponse\"h\202\323\344\223\002Y\022W/v1/{parent" + + "=projects/*/locations/*/workstationClust" + + "ers/*}/workstationConfigs:listUsable\332A\006p" + + "arent\022\274\002\n\027CreateWorkstationConfig\022<.goog" + + "le.cloud.workstations.v1.CreateWorkstati" + + "onConfigRequest\032\035.google.longrunning.Ope" + + "ration\"\303\001\202\323\344\223\002b\"L/v1/{parent=projects/*/" + + "locations/*/workstationClusters/*}/works" + + "tationConfigs:\022workstation_config\332A/pare" + + "nt,workstation_config,workstation_config" + + "_id\312A&\n\021WorkstationConfig\022\021OperationMeta" + + "data\022\276\002\n\027UpdateWorkstationConfig\022<.googl" + + "e.cloud.workstations.v1.UpdateWorkstatio" + + "nConfigRequest\032\035.google.longrunning.Oper" + + "ation\"\305\001\202\323\344\223\002u2_/v1/{workstation_config." + + "name=projects/*/locations/*/workstationC" + + "lusters/*/workstationConfigs/*}:\022worksta" + + "tion_config\332A\036workstation_config,update_" + + "mask\312A&\n\021WorkstationConfig\022\021OperationMet" + + "adata\022\375\001\n\027DeleteWorkstationConfig\022<.goog" + + "le.cloud.workstations.v1.DeleteWorkstati" + + "onConfigRequest\032\035.google.longrunning.Ope" + + "ration\"\204\001\202\323\344\223\002N*L/v1/{name=projects/*/lo" + + "cations/*/workstationClusters/*/workstat" + + "ionConfigs/*}\332A\004name\312A&\n\021WorkstationConf" + + "ig\022\021OperationMetadata\022\334\001\n\016GetWorkstation" + + "\0223.google.cloud.workstations.v1.GetWorks" + + "tationRequest\032).google.cloud.workstation" + + "s.v1.Workstation\"j\202\323\344\223\002]\022[/v1/{name=proj" + + "ects/*/locations/*/workstationClusters/*" + + "/workstationConfigs/*/workstations/*}\332A\004" + + "name\022\357\001\n\020ListWorkstations\0225.google.cloud" + + ".workstations.v1.ListWorkstationsRequest" + + "\0326.google.cloud.workstations.v1.ListWork" + + "stationsResponse\"l\202\323\344\223\002]\022[/v1/{parent=pr" + + "ojects/*/locations/*/workstationClusters" + + "/*/workstationConfigs/*}/workstations\332A\006" + + "parent\022\214\002\n\026ListUsableWorkstations\022;.goog" + + "le.cloud.workstations.v1.ListUsableWorks" + + "tationsRequest\032<.google.cloud.workstatio" + + "ns.v1.ListUsableWorkstationsResponse\"w\202\323" + + "\344\223\002h\022f/v1/{parent=projects/*/locations/*" + + "/workstationClusters/*/workstationConfig" + + "s/*}/workstations:listUsable\332A\006parent\022\244\002" + + "\n\021CreateWorkstation\0226.google.cloud.works" + + "tations.v1.CreateWorkstationRequest\032\035.go" + + "ogle.longrunning.Operation\"\267\001\202\323\344\223\002j\"[/v1" + + "/{parent=projects/*/locations/*/workstat" + + "ionClusters/*/workstationConfigs/*}/work" + + "stations:\013workstation\332A!parent,workstati" + + "on,workstation_id\312A \n\013Workstation\022\021Opera" + + "tionMetadata\022\246\002\n\021UpdateWorkstation\0226.goo" + + "gle.cloud.workstations.v1.UpdateWorkstat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"\271\001\202\323\344\223\002v2g/v1/{workstation.name=projec" + + "ts/*/locations/*/workstationClusters/*/w" + + "orkstationConfigs/*/workstations/*}:\013wor" + + "kstation\332A\027workstation,update_mask\312A \n\013W" + + "orkstation\022\021OperationMetadata\022\372\001\n\021Delete" + + "Workstation\0226.google.cloud.workstations." + + "v1.DeleteWorkstationRequest\032\035.google.lon" + + "grunning.Operation\"\215\001\202\323\344\223\002]*[/v1/{name=p" + + "rojects/*/locations/*/workstationCluster" + + "s/*/workstationConfigs/*/workstations/*}" + + "\332A\004name\312A \n\013Workstation\022\021OperationMetada" + + "ta\022\201\002\n\020StartWorkstation\0225.google.cloud.w" + + "orkstations.v1.StartWorkstationRequest\032\035" + + ".google.longrunning.Operation\"\226\001\202\323\344\223\002f\"a" + + "/v1/{name=projects/*/locations/*/worksta" + + "tionClusters/*/workstationConfigs/*/work" + + "stations/*}:start:\001*\332A\004name\312A \n\013Workstat" + + "ion\022\021OperationMetadata\022\376\001\n\017StopWorkstati" + + "on\0224.google.cloud.workstations.v1.StopWo" + + "rkstationRequest\032\035.google.longrunning.Op" + + "eration\"\225\001\202\323\344\223\002e\"`/v1/{name=projects/*/l" + + "ocations/*/workstationClusters/*/worksta" + + "tionConfigs/*/workstations/*}:stop:\001*\332A\004" + + "name\312A \n\013Workstation\022\021OperationMetadata\022" + + "\234\002\n\023GenerateAccessToken\0228.google.cloud.w" + + "orkstations.v1.GenerateAccessTokenReques" + + "t\0329.google.cloud.workstations.v1.Generat" + + "eAccessTokenResponse\"\217\001\202\323\344\223\002{\"v/v1/{work" + + "station=projects/*/locations/*/workstati" + + "onClusters/*/workstationConfigs/*/workst" + + "ations/*}:generateAccessToken:\001*\332A\013works" + + "tation\032O\312A\033workstations.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB}\n com.google.cloud.workstations" + + ".v1B\021WorkstationsProtoP\001ZDcloud.google.c" + + "om/go/workstations/apiv1/workstationspb;" + + "workstationspbb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "PrivateClusterConfig", "Degraded", "Conditions", }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, + new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "Container", "EncryptionKey", "Degraded", "Conditions", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, + new java.lang.String[] { "GceInstance", "Config", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, + new java.lang.String[] { "MachineType", "ServiceAccount", "Tags", "PoolSize", "DisablePublicIpAddresses", "EnableNestedVirtualization", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, + new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, + new java.lang.String[] { "EnableConfidentialCompute", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, + new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, + new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, + new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_Workstation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "State", "Host", }); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, + new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, + new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, + new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, + new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, + new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, + new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, + new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, + new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, + new java.lang.String[] { "ExpireTime", "Ttl", "Workstation", "Expiration", }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, + new java.lang.String[] { "AccessToken", "ExpireTime", }); + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto new file mode 100644 index 000000000000..7425dd67ea0f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto @@ -0,0 +1,1163 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.workstations.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "cloud.google.com/go/workstations/apiv1/workstationspb;workstationspb"; +option java_multiple_files = true; +option java_outer_classname = "WorkstationsProto"; +option java_package = "com.google.cloud.workstations.v1"; + +// Service for interacting with Cloud Workstations. +service Workstations { + option (google.api.default_host) = "workstations.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Returns the requested workstation cluster. + rpc GetWorkstationCluster(GetWorkstationClusterRequest) + returns (WorkstationCluster) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/workstationClusters/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns all workstation clusters in the specified location. + rpc ListWorkstationClusters(ListWorkstationClustersRequest) + returns (ListWorkstationClustersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/workstationClusters" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new workstation cluster. + rpc CreateWorkstationCluster(CreateWorkstationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/workstationClusters" + body: "workstation_cluster" + }; + option (google.api.method_signature) = + "parent,workstation_cluster,workstation_cluster_id"; + option (google.longrunning.operation_info) = { + response_type: "WorkstationCluster" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing workstation cluster. + rpc UpdateWorkstationCluster(UpdateWorkstationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{workstation_cluster.name=projects/*/locations/*/workstationClusters/*}" + body: "workstation_cluster" + }; + option (google.api.method_signature) = "workstation_cluster,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "WorkstationCluster" + metadata_type: "OperationMetadata" + }; + } + + // Deletes the specified workstation cluster. + rpc DeleteWorkstationCluster(DeleteWorkstationClusterRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/workstationClusters/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "WorkstationCluster" + metadata_type: "OperationMetadata" + }; + } + + // Returns the requested workstation configuration. + rpc GetWorkstationConfig(GetWorkstationConfigRequest) + returns (WorkstationConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns all WorkstationConfigs in the specified cluster. + rpc ListWorkstationConfigs(ListWorkstationConfigsRequest) + returns (ListWorkstationConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns all workstation configurations in the specified cluster on which + // the caller has the "workstations.workstation.create" permission. + rpc ListUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest) + returns (ListUsableWorkstationConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs:listUsable" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new workstation configuration. + rpc CreateWorkstationConfig(CreateWorkstationConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/workstationClusters/*}/workstationConfigs" + body: "workstation_config" + }; + option (google.api.method_signature) = + "parent,workstation_config,workstation_config_id"; + option (google.longrunning.operation_info) = { + response_type: "WorkstationConfig" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing workstation configuration. + rpc UpdateWorkstationConfig(UpdateWorkstationConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{workstation_config.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}" + body: "workstation_config" + }; + option (google.api.method_signature) = "workstation_config,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "WorkstationConfig" + metadata_type: "OperationMetadata" + }; + } + + // Deletes the specified workstation configuration. + rpc DeleteWorkstationConfig(DeleteWorkstationConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "WorkstationConfig" + metadata_type: "OperationMetadata" + }; + } + + // Returns the requested workstation. + rpc GetWorkstation(GetWorkstationRequest) returns (Workstation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns all Workstations using the specified config. + rpc ListWorkstations(ListWorkstationsRequest) + returns (ListWorkstationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations" + }; + option (google.api.method_signature) = "parent"; + } + + // Returns all Workstations using the specified config on which the caller has + // the "workstations.workstations.use" permission. + rpc ListUsableWorkstations(ListUsableWorkstationsRequest) + returns (ListUsableWorkstationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations:listUsable" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new workstation. + rpc CreateWorkstation(CreateWorkstationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/workstationClusters/*/workstationConfigs/*}/workstations" + body: "workstation" + }; + option (google.api.method_signature) = "parent,workstation,workstation_id"; + option (google.longrunning.operation_info) = { + response_type: "Workstation" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing workstation. + rpc UpdateWorkstation(UpdateWorkstationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{workstation.name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}" + body: "workstation" + }; + option (google.api.method_signature) = "workstation,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Workstation" + metadata_type: "OperationMetadata" + }; + } + + // Deletes the specified workstation. + rpc DeleteWorkstation(DeleteWorkstationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Workstation" + metadata_type: "OperationMetadata" + }; + } + + // Starts running a workstation so that users can connect to it. + rpc StartWorkstation(StartWorkstationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:start" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Workstation" + metadata_type: "OperationMetadata" + }; + } + + // Stops running a workstation, reducing costs. + rpc StopWorkstation(StopWorkstationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:stop" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Workstation" + metadata_type: "OperationMetadata" + }; + } + + // Returns a short-lived credential that can be used to send authenticated and + // authorized traffic to a workstation. + rpc GenerateAccessToken(GenerateAccessTokenRequest) + returns (GenerateAccessTokenResponse) { + option (google.api.http) = { + post: "/v1/{workstation=projects/*/locations/*/workstationClusters/*/workstationConfigs/*/workstations/*}:generateAccessToken" + body: "*" + }; + option (google.api.method_signature) = "workstation"; + } +} + +// A grouping of workstation configurations and the associated workstations +// in that region. +message WorkstationCluster { + option (google.api.resource) = { + type: "workstations.googleapis.com/WorkstationCluster" + pattern: "projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}" + style: DECLARATIVE_FRIENDLY + }; + + // Configuration options for private clusters. + message PrivateClusterConfig { + // Immutable. Whether Workstations endpoint is private. + bool enable_private_endpoint = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Hostname for the workstation cluster. This field will be + // populated only when private endpoint is enabled. To access workstations + // in the cluster, create a new DNS zone mapping this domain name to an + // internal IP address and a forwarding rule mapping that address to the + // service attachment. + string cluster_hostname = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Service attachment URI for the workstation cluster. The + // service attachemnt is created when private endpoint is enabled. To access + // workstations in the cluster, configure access to the managed service + // using [Private Service + // Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). + string service_attachment_uri = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Additional projects that are allowed to attach to the workstation + // cluster's service attachment. By default, the workstation cluster's + // project and the VPC host project (if different) are allowed. + repeated string allowed_projects = 4; + } + + // Full name of this resource. + string name = 1; + + // Human-readable name for this resource. + string display_name = 2; + + // Output only. A system-assigned unique identified for this resource. + string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether this resource is currently being updated to + // match its intended state. + bool reconciling = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Client-specified annotations. + map annotations = 5; + + // Client-specified labels that are applied to the resource and that are also + // propagated to the underlying Compute Engine resources. + map labels = 15; + + // Output only. Time when this resource was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this resource was most recently updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this resource was soft-deleted. + google.protobuf.Timestamp delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Checksum computed by the server. May be sent on update and delete requests + // to ensure that the client has an up-to-date value before proceeding. + string etag = 9; + + // Immutable. Name of the Compute Engine network in which instances associated + // with this cluster will be created. + string network = 10 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Name of the Compute Engine subnetwork in which instances + // associated with this cluster will be created. Must be part of the + // subnetwork specified for this cluster. + string subnetwork = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Configuration for private cluster. + PrivateClusterConfig private_cluster_config = 12; + + // Output only. Whether this resource is in degraded mode, in which case it + // may require user action to restore full functionality. Details can be found + // in the `conditions` field. + bool degraded = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status conditions describing the current resource state. + repeated google.rpc.Status conditions = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A set of configuration options describing how a workstation will be run. +// Workstation configurations are intended to be shared across multiple +// workstations. +message WorkstationConfig { + option (google.api.resource) = { + type: "workstations.googleapis.com/WorkstationConfig" + pattern: "projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}" + style: DECLARATIVE_FRIENDLY + }; + + // Runtime host for a workstation. + message Host { + // A runtime using a Compute Engine instance. + message GceInstance { + // A set of Compute Engine Shielded instance options. + message GceShieldedInstanceConfig { + // Whether the instance has Secure Boot enabled. + bool enable_secure_boot = 1; + + // Whether the instance has the vTPM enabled. + bool enable_vtpm = 2; + + // Whether the instance has integrity monitoring enabled. + bool enable_integrity_monitoring = 3; + } + + // A set of Compute Engine Confidential VM instance options. + message GceConfidentialInstanceConfig { + // Whether the instance has confidential compute enabled. + bool enable_confidential_compute = 1; + } + + // The name of a Compute Engine machine type. + string machine_type = 1; + + // Email address of the service account that will be used on VM instances + // used to support this config. If not set, VMs will run with a + // Google-managed service account. This service account must have + // permission to pull the specified container image, otherwise the image + // must be publicly accessible. + string service_account = 2; + + // Network tags to add to the Compute Engine machines backing the + // Workstations. + repeated string tags = 4; + + // Number of instances to pool for faster workstation starup. + int32 pool_size = 5; + + // Whether instances have no public IP address. + bool disable_public_ip_addresses = 6; + + // Whether to enable nested virtualization on instances. + bool enable_nested_virtualization = 7; + + // A set of Compute Engine Shielded instance options. + GceShieldedInstanceConfig shielded_instance_config = 8; + + // A set of Compute Engine Confidential VM instance options. + GceConfidentialInstanceConfig confidential_instance_config = 10; + + // Size of the boot disk in GB. Defaults to 50. + int32 boot_disk_size_gb = 9; + } + + // Type of host that will be used for the workstation's runtime. + oneof config { + // Specifies a Compute Engine instance as the host. + GceInstance gce_instance = 1; + } + } + + // A directory to persist across workstation sessions. + message PersistentDirectory { + // A PersistentDirectory backed by a Compute Engine regional persistent + // disk. + message GceRegionalPersistentDisk { + // Value representing what should happen to the disk after the workstation + // is deleted. + enum ReclaimPolicy { + // Do not use. + RECLAIM_POLICY_UNSPECIFIED = 0; + + // The persistent disk will be deleted with the workstation. + DELETE = 1; + + // The persistent disk will be remain after the workstation is deleted, + // and the administrator must manually delete the disk. + RETAIN = 2; + } + + // Size of the disk in GB. Must be empty if source_snapshot is set. + // Defaults to 200. + int32 size_gb = 1; + + // Type of file system that the disk should be formatted with. The + // workstation image must support this file system type. Must be empty + // if source_snapshot is set. Defaults to ext4. + string fs_type = 2; + + // Type of the disk to use. Defaults to pd-standard. + string disk_type = 3; + + // Name of the snapshot to use as the source for the disk. If set, + // size_gb and fs_type must be empty. + string source_snapshot = 5; + + // What should happen to the disk after the workstation is deleted. + // Defaults to DELETE. + ReclaimPolicy reclaim_policy = 4; + } + + // How a persistent directory should be implemented. + oneof directory_type { + // A PersistentDirectory backed by a Compute Engine persistent disk. + GceRegionalPersistentDisk gce_pd = 2; + } + + // Location of this directory in the running workstation. + string mount_path = 1; + } + + // A Docker container. + message Container { + // Docker image defining the container. This image must be accessible by the + // config's service account. + string image = 1; + + // If set, overrides the default ENTRYPOINT specified by the image. + repeated string command = 2; + + // Arguments passed to the entrypoint. + repeated string args = 3; + + // Environment variables passed to the container. + map env = 4; + + // If set, overrides the default DIR specified by the image. + string working_dir = 5; + + // If set, overrides the USER specified in the image with the given uid. + int32 run_as_user = 6; + } + + // A customer-managed encryption key for the Compute Engine resources + // of this workstation configuration. + message CustomerEncryptionKey { + // The name of the Google Cloud KMS encryption key. For example, + // `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`. + string kms_key = 1; + + // The service account to use with the specified + // KMS key. We recommend that you use a separate service account + // and follow KMS best practices. For more information, see + // [Separation of + // duties](https://cloud.google.com/kms/docs/separation-of-duties) and + // `gcloud kms keys add-iam-policy-binding` + // [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member). + string kms_key_service_account = 2; + } + + // Full name of this resource. + string name = 1; + + // Human-readable name for this resource. + string display_name = 2; + + // Output only. A system-assigned unique identified for this resource. + string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether this resource is currently being updated to + // match its intended state. + bool reconciling = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Client-specified annotations. + map annotations = 5; + + // Client-specified labels that are applied to the resource and that are also + // propagated to the underlying Compute Engine resources. + map labels = 18; + + // Output only. Time when this resource was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this resource was most recently updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this resource was soft-deleted. + google.protobuf.Timestamp delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Checksum computed by the server. May be sent on update and delete requests + // to ensure that the client has an up-to-date value before proceeding. + string etag = 9; + + // How long to wait before automatically stopping an instance that hasn't + // received any user traffic. A value of 0 indicates that this instance + // should never time out due to idleness. Defaults to 20 minutes. + google.protobuf.Duration idle_timeout = 10; + + // How long to wait before automatically stopping a workstation after it + // started. A value of 0 indicates that workstations using this configuration + // should never time out. Must be greater than 0 and less than 24 hours if + // encryption_key is set. Defaults to 12 hours. + google.protobuf.Duration running_timeout = 11; + + // Runtime host for the workstation. + Host host = 12; + + // Directories to persist across workstation sessions. + repeated PersistentDirectory persistent_directories = 13; + + // Container that will be run for each workstation using this configuration + // when that workstation is started. + Container container = 14; + + // Encrypts resources of this workstation configuration using a + // customer-managed encryption key. + // + // If specified, the boot disk of the Compute Engine instance and the + // persistent disk are encrypted using this encryption key. If + // this field is not set, the disks are encrypted using a generated + // key. Customer-managed encryption keys do not protect disk metadata. + // + // If the customer-managed encryption key is rotated, when the workstation + // instance is stopped, the system attempts to recreate the + // persistent disk with the new version of the key. Be sure to keep + // older versions of the key until the persistent disk is recreated. + // Otherwise, data on the persistent disk will be lost. + // + // If the encryption key is revoked, the workstation session will + // automatically be stopped within 7 hours. + CustomerEncryptionKey encryption_key = 17; + + // Output only. Whether this resource is degraded, in which case it may + // require user action to restore full functionality. See also the + // `conditions` field. + bool degraded = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status conditions describing the current resource state. + repeated google.rpc.Status conditions = 16 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A single instance of a developer workstation with its own persistent storage. +message Workstation { + option (google.api.resource) = { + type: "workstations.googleapis.com/Workstation" + pattern: "projects/{project}/locations/{location}/workstationClusters/{workstation_cluster}/workstationConfigs/{workstation_config}/workstations/{workstation}" + style: DECLARATIVE_FRIENDLY + }; + + // Whether a workstation is running and ready to receive user requests. + enum State { + // Do not use. + STATE_UNSPECIFIED = 0; + + // The workstation is not yet ready to accept requests from users but will + // be soon. + STATE_STARTING = 1; + + // The workstation is ready to accept requests from users. + STATE_RUNNING = 2; + + // The workstation is being stopped. + STATE_STOPPING = 3; + + // The workstation is stopped and will not be able to receive requests until + // it is started. + STATE_STOPPED = 4; + } + + // Full name of this resource. + string name = 1; + + // Human-readable name for this resource. + string display_name = 2; + + // Output only. A system-assigned unique identified for this resource. + string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether this resource is currently being updated to + // match its intended state. + bool reconciling = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Client-specified annotations. + map annotations = 5; + + // Client-specified labels that are applied to the resource and that are also + // propagated to the underlying Compute Engine resources. + map labels = 13; + + // Output only. Time when this resource was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this resource was most recently updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this resource was soft-deleted. + google.protobuf.Timestamp delete_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Checksum computed by the server. May be sent on update and delete requests + // to ensure that the client has an up-to-date value before proceeding. + string etag = 9; + + // Output only. Current state of the workstation. + State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Host to which clients can send HTTPS traffic that will be + // received by the workstation. Authorized traffic will be received to the + // workstation as HTTP on port 80. To send traffic to a different port, + // clients may prefix the host with the destination port in the format + // `{port}-{host}`. + string host = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for GetWorkstationCluster. +message GetWorkstationClusterRequest { + // Required. Name of the requested resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationCluster" + } + ]; +} + +// Request message for ListWorkstationClusters. +message ListWorkstationClustersRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "workstations.googleapis.com/WorkstationCluster" + } + ]; + + // Maximum number of items to return. + int32 page_size = 2; + + // next_page_token value returned from a previous List request, if any. + string page_token = 3; +} + +// Response message for ListWorkstationClusters. +message ListWorkstationClustersResponse { + // The requested workstation clusters. + repeated WorkstationCluster workstation_clusters = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Message for creating a CreateWorkstationCluster. +message CreateWorkstationClusterRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "workstations.googleapis.com/WorkstationCluster" + } + ]; + + // Required. ID to use for the workstation cluster. + string workstation_cluster_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Workstation cluster to create. + WorkstationCluster workstation_cluster = 3 + [(google.api.field_behavior) = REQUIRED]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 4; +} + +// Request message for UpdateWorkstationCluster. +message UpdateWorkstationClusterRequest { + // Required. Workstation cluster to update. + WorkstationCluster workstation_cluster = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask that specifies which fields in the workstation cluster + // should be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 3; + + // If set, and the workstation cluster is not found, a new workstation + // cluster will be created. In this situation, update_mask is ignored. + bool allow_missing = 4; +} + +// Message for deleting a workstation cluster. +message DeleteWorkstationClusterRequest { + // Required. Name of the workstation cluster to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationCluster" + } + ]; + + // If set, validate the request and preview the review, but do not apply it. + bool validate_only = 2; + + // If set, the request will be rejected if the latest version of the + // workstation cluster on the server does not have this etag. + string etag = 3; + + // If set, any workstation configurations and workstations in the + // workstation cluster are also deleted. Otherwise, the request only + // works if the workstation cluster has no configurations or workstations. + bool force = 4; +} + +// Request message for GetWorkstationConfig. +message GetWorkstationConfigRequest { + // Required. Name of the requested resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationConfig" + } + ]; +} + +// Request message for ListWorkstationConfigs. +message ListWorkstationConfigsRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationCluster" + } + ]; + + // Maximum number of items to return. + int32 page_size = 2; + + // next_page_token value returned from a previous List request, if any. + string page_token = 3; +} + +// Response message for ListWorkstationConfigs. +message ListWorkstationConfigsResponse { + // The requested configs. + repeated WorkstationConfig workstation_configs = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Request message for ListUsableWorkstationConfigs. +message ListUsableWorkstationConfigsRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationCluster" + } + ]; + + // Maximum number of items to return. + int32 page_size = 2; + + // next_page_token value returned from a previous List request, if any. + string page_token = 3; +} + +// Response message for ListUsableWorkstationConfigs. +message ListUsableWorkstationConfigsResponse { + // The requested configs. + repeated WorkstationConfig workstation_configs = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Message for creating a CreateWorkstationConfig. +message CreateWorkstationConfigRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationCluster" + } + ]; + + // Required. ID to use for the config. + string workstation_config_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Config to create. + WorkstationConfig workstation_config = 3 + [(google.api.field_behavior) = REQUIRED]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 4; +} + +// Request message for UpdateWorkstationConfig. +message UpdateWorkstationConfigRequest { + // Required. Config to update. + WorkstationConfig workstation_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask specifying which fields in the config should be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 3; + + // If set, and the config is not found, a new config will be created. + // In this situation, update_mask is ignored. + bool allow_missing = 4; +} + +// Message for deleting a workstation configuration. +message DeleteWorkstationConfigRequest { + // Required. Name of the config to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationConfig" + } + ]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 2; + + // If set, the request will be rejected if the latest version of the config on + // the server does not have this etag. + string etag = 3; + + // If set, any Workstations in the config will also be deleted. Otherwise, + // the request will work only if the config has no workstations. + bool force = 4; +} + +// Request message for GetWorkstation. +message GetWorkstationRequest { + // Required. Name of the requested resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/Workstation" + } + ]; +} + +// Request message for ListWorkstations. +message ListWorkstationsRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationConfig" + } + ]; + + // Maximum number of items to return. + int32 page_size = 2; + + // next_page_token value returned from a previous List request, if any. + string page_token = 3; +} + +// Response message for ListWorkstations. +message ListWorkstationsResponse { + // The requested workstations. + repeated Workstation workstations = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Request message for ListUsableWorkstations. +message ListUsableWorkstationsRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationConfig" + } + ]; + + // Maximum number of items to return. + int32 page_size = 2; + + // next_page_token value returned from a previous List request, if any. + string page_token = 3; +} + +// Response message for ListUsableWorkstations. +message ListUsableWorkstationsResponse { + // The requested workstations. + repeated Workstation workstations = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Message for creating a CreateWorkstation. +message CreateWorkstationRequest { + // Required. Parent resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/WorkstationConfig" + } + ]; + + // Required. ID to use for the workstation. + string workstation_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Workstation to create. + Workstation workstation = 3 [(google.api.field_behavior) = REQUIRED]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 4; +} + +// Request message for UpdateWorkstation. +message UpdateWorkstationRequest { + // Required. Workstation to update. + Workstation workstation = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask specifying which fields in the config should be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 3; + + // If set, and the config is not found, a new config will be created. + // In this situation, update_mask is ignored. + bool allow_missing = 4; +} + +// Request message for DeleteWorkstation. +message DeleteWorkstationRequest { + // Required. Name of the workstation to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/Workstation" + } + ]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 2; + + // If set, the request will be rejected if the latest version of the + // workstation on the server does not have this etag. + string etag = 3; +} + +// Request message for StartWorkstation. +message StartWorkstationRequest { + // Required. Name of the workstation to start. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/Workstation" + } + ]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 2; + + // If set, the request will be rejected if the latest version of the + // workstation on the server does not have this etag. + string etag = 3; +} + +// Request message for StopWorkstation. +message StopWorkstationRequest { + // Required. Name of the workstation to stop. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/Workstation" + } + ]; + + // If set, validate the request and preview the review, but do not actually + // apply it. + bool validate_only = 2; + + // If set, the request will be rejected if the latest version of the + // workstation on the server does not have this etag. + string etag = 3; +} + +// Request message for GenerateAccessToken. +message GenerateAccessTokenRequest { + // Desired expiration or lifetime of the access token. + oneof expiration { + // Desired expiration time of the access token. This value must + // be at most 24 hours in the future. If a value is not specified, the + // token's expiration time will be set to a default value of 1 hour in the + // future. + google.protobuf.Timestamp expire_time = 2; + + // Desired lifetime duration of the access token. This value must + // be at most 24 hours. If a value is not specified, the token's lifetime + // will be set to a default value of 1 hour. + google.protobuf.Duration ttl = 3; + } + + // Required. Name of the workstation for which the access token should be + // generated. + string workstation = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workstations.googleapis.com/Workstation" + } + ]; +} + +// Response message for GenerateAccessToken. +message GenerateAccessTokenResponse { + // The generated bearer access token. To use this token, include it in an + // Authorization header of an HTTP request sent to the associated + // workstation's hostname, for example, `Authorization: Bearer + // `. + string access_token = 1; + + // Time at which the generated token will expire. + google.protobuf.Timestamp expire_time = 2; +} + +// Metadata for long-running operations. +message OperationMetadata { + // Output only. Time that the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time that the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java new file mode 100644 index 000000000000..c09c6d3b7e5c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.stub.samples; + +// [START workstations_v1_generated_WorkstationsStubSettings_GetWorkstationCluster_sync] +import com.google.cloud.workstations.v1.stub.WorkstationsStubSettings; +import java.time.Duration; + +public class SyncGetWorkstationCluster { + + public static void main(String[] args) throws Exception { + syncGetWorkstationCluster(); + } + + public static void syncGetWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsStubSettings.Builder workstationsSettingsBuilder = + WorkstationsStubSettings.newBuilder(); + workstationsSettingsBuilder + .getWorkstationClusterSettings() + .setRetrySettings( + workstationsSettingsBuilder + .getWorkstationClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + WorkstationsStubSettings workstationsSettings = workstationsSettingsBuilder.build(); + } +} +// [END workstations_v1_generated_WorkstationsStubSettings_GetWorkstationCluster_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..901427fe9f49 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.cloud.workstations.v1.WorkstationsSettings; +import com.google.cloud.workstations.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsSettings workstationsSettings = + WorkstationsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); + } +} +// [END workstations_v1_generated_Workstations_Create_SetCredentialsProvider_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..c50c875969a0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,39 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_Create_SetCredentialsProvider1_sync] +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.cloud.workstations.v1.WorkstationsSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsSettings workstationsSettings = WorkstationsSettings.newHttpJsonBuilder().build(); + WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); + } +} +// [END workstations_v1_generated_Workstations_Create_SetCredentialsProvider1_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..9a0fa9c1f3b5 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_Create_SetEndpoint_sync] +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.cloud.workstations.v1.WorkstationsSettings; +import com.google.cloud.workstations.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsSettings workstationsSettings = + WorkstationsSettings.newBuilder().setEndpoint(myEndpoint).build(); + WorkstationsClient workstationsClient = WorkstationsClient.create(workstationsSettings); + } +} +// [END workstations_v1_generated_Workstations_Create_SetEndpoint_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java new file mode 100644 index 000000000000..d7763b0b1bfc --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkstation { + + public static void main(String[] args) throws Exception { + asyncCreateWorkstation(); + } + + public static void asyncCreateWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationRequest request = + CreateWorkstationRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setWorkstationId("workstationId560540030") + .setWorkstation(Workstation.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + workstationsClient.createWorkstationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstation_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java new file mode 100644 index 000000000000..b0aa7b7a0a5a --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncCreateWorkstationLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkstationLRO(); + } + + public static void asyncCreateWorkstationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationRequest request = + CreateWorkstationRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setWorkstationId("workstationId560540030") + .setWorkstation(Workstation.newBuilder().build()) + .setValidateOnly(true) + .build(); + OperationFuture future = + workstationsClient.createWorkstationOperationCallable().futureCall(request); + // Do something. + Workstation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstation_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java new file mode 100644 index 000000000000..b7d552bc0ac4 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstation_sync] +import com.google.cloud.workstations.v1.CreateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstation { + + public static void main(String[] args) throws Exception { + syncCreateWorkstation(); + } + + public static void syncCreateWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationRequest request = + CreateWorkstationRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setWorkstationId("workstationId560540030") + .setWorkstation(Workstation.newBuilder().build()) + .setValidateOnly(true) + .build(); + Workstation response = workstationsClient.createWorkstationAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstation_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java new file mode 100644 index 000000000000..cb71bed7ccdf --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstation_StringWorkstationString_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationStringWorkstationString { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationStringWorkstationString(); + } + + public static void syncCreateWorkstationStringWorkstationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString(); + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + Workstation response = + workstationsClient.createWorkstationAsync(parent, workstation, workstationId).get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstation_StringWorkstationString_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java new file mode 100644 index 000000000000..12f928877de7 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstation_WorkstationconfignameWorkstationString_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationWorkstationconfignameWorkstationString { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationWorkstationconfignameWorkstationString(); + } + + public static void syncCreateWorkstationWorkstationconfignameWorkstationString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + Workstation workstation = Workstation.newBuilder().build(); + String workstationId = "workstationId560540030"; + Workstation response = + workstationsClient.createWorkstationAsync(parent, workstation, workstationId).get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstation_WorkstationconfignameWorkstationString_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java new file mode 100644 index 000000000000..a28464a34b81 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkstationCluster { + + public static void main(String[] args) throws Exception { + asyncCreateWorkstationCluster(); + } + + public static void asyncCreateWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationClusterRequest request = + CreateWorkstationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkstationClusterId("workstationClusterId351421170") + .setWorkstationCluster(WorkstationCluster.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + workstationsClient.createWorkstationClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationCluster_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java new file mode 100644 index 000000000000..5f1f60e27fe1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncCreateWorkstationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkstationClusterLRO(); + } + + public static void asyncCreateWorkstationClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationClusterRequest request = + CreateWorkstationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkstationClusterId("workstationClusterId351421170") + .setWorkstationCluster(WorkstationCluster.newBuilder().build()) + .setValidateOnly(true) + .build(); + OperationFuture future = + workstationsClient.createWorkstationClusterOperationCallable().futureCall(request); + // Do something. + WorkstationCluster response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationCluster_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java new file mode 100644 index 000000000000..cfaa3a94de95 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationCluster_sync] +import com.google.cloud.workstations.v1.CreateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationCluster { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationCluster(); + } + + public static void syncCreateWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationClusterRequest request = + CreateWorkstationClusterRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkstationClusterId("workstationClusterId351421170") + .setWorkstationCluster(WorkstationCluster.newBuilder().build()) + .setValidateOnly(true) + .build(); + WorkstationCluster response = workstationsClient.createWorkstationClusterAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationCluster_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java new file mode 100644 index 000000000000..a374f8bd7bae --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationCluster_LocationnameWorkstationclusterString_sync] +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationClusterLocationnameWorkstationclusterString { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationClusterLocationnameWorkstationclusterString(); + } + + public static void syncCreateWorkstationClusterLocationnameWorkstationclusterString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + WorkstationCluster response = + workstationsClient + .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId) + .get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationCluster_LocationnameWorkstationclusterString_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java new file mode 100644 index 000000000000..afaca79b93f2 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java @@ -0,0 +1,47 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationCluster_StringWorkstationclusterString_sync] +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationClusterStringWorkstationclusterString { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationClusterStringWorkstationclusterString(); + } + + public static void syncCreateWorkstationClusterStringWorkstationclusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + String workstationClusterId = "workstationClusterId351421170"; + WorkstationCluster response = + workstationsClient + .createWorkstationClusterAsync(parent, workstationCluster, workstationClusterId) + .get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationCluster_StringWorkstationclusterString_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java new file mode 100644 index 000000000000..570c511b3f37 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkstationConfig { + + public static void main(String[] args) throws Exception { + asyncCreateWorkstationConfig(); + } + + public static void asyncCreateWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationConfigRequest request = + CreateWorkstationConfigRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setWorkstationConfigId("workstationConfigId798542368") + .setWorkstationConfig(WorkstationConfig.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + workstationsClient.createWorkstationConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationConfig_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java new file mode 100644 index 000000000000..392ab8297510 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncCreateWorkstationConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkstationConfigLRO(); + } + + public static void asyncCreateWorkstationConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationConfigRequest request = + CreateWorkstationConfigRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setWorkstationConfigId("workstationConfigId798542368") + .setWorkstationConfig(WorkstationConfig.newBuilder().build()) + .setValidateOnly(true) + .build(); + OperationFuture future = + workstationsClient.createWorkstationConfigOperationCallable().futureCall(request); + // Do something. + WorkstationConfig response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationConfig_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java new file mode 100644 index 000000000000..b6362fa264a3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java @@ -0,0 +1,51 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationConfig_sync] +import com.google.cloud.workstations.v1.CreateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationConfig { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationConfig(); + } + + public static void syncCreateWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + CreateWorkstationConfigRequest request = + CreateWorkstationConfigRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setWorkstationConfigId("workstationConfigId798542368") + .setWorkstationConfig(WorkstationConfig.newBuilder().build()) + .setValidateOnly(true) + .build(); + WorkstationConfig response = workstationsClient.createWorkstationConfigAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationConfig_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java new file mode 100644 index 000000000000..5a2f3d8247d3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationConfig_StringWorkstationconfigString_sync] +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationConfigStringWorkstationconfigString { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationConfigStringWorkstationconfigString(); + } + + public static void syncCreateWorkstationConfigStringWorkstationconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString(); + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + WorkstationConfig response = + workstationsClient + .createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId) + .get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationConfig_StringWorkstationconfigString_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java new file mode 100644 index 000000000000..631ced32e03a --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_CreateWorkstationConfig_WorkstationclusternameWorkstationconfigString_sync] +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString { + + public static void main(String[] args) throws Exception { + syncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString(); + } + + public static void syncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + String workstationConfigId = "workstationConfigId798542368"; + WorkstationConfig response = + workstationsClient + .createWorkstationConfigAsync(parent, workstationConfig, workstationConfigId) + .get(); + } + } +} +// [END workstations_v1_generated_Workstations_CreateWorkstationConfig_WorkstationclusternameWorkstationconfigString_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java new file mode 100644 index 000000000000..f0d382e012d1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteWorkstation { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkstation(); + } + + public static void asyncDeleteWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationRequest request = + DeleteWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = + workstationsClient.deleteWorkstationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstation_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java new file mode 100644 index 000000000000..65e3a8445009 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncDeleteWorkstationLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkstationLRO(); + } + + public static void asyncDeleteWorkstationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationRequest request = + DeleteWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + workstationsClient.deleteWorkstationOperationCallable().futureCall(request); + // Do something. + Workstation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstation_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java new file mode 100644 index 000000000000..28e85e0a0725 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstation_sync] +import com.google.cloud.workstations.v1.DeleteWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstation { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstation(); + } + + public static void syncDeleteWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationRequest request = + DeleteWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Workstation response = workstationsClient.deleteWorkstationAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstation_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java new file mode 100644 index 000000000000..9d0a08d6c839 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstation_String_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationString(); + } + + public static void syncDeleteWorkstationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString(); + Workstation response = workstationsClient.deleteWorkstationAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstation_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java new file mode 100644 index 000000000000..8ec870a076de --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstation_Workstationname_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationWorkstationname { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationWorkstationname(); + } + + public static void syncDeleteWorkstationWorkstationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + Workstation response = workstationsClient.deleteWorkstationAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstation_Workstationname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java new file mode 100644 index 000000000000..1b1f605a3402 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteWorkstationCluster { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkstationCluster(); + } + + public static void asyncDeleteWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationClusterRequest request = + DeleteWorkstationClusterRequest.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .setForce(true) + .build(); + ApiFuture future = + workstationsClient.deleteWorkstationClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationCluster_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java new file mode 100644 index 000000000000..00af17459518 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncDeleteWorkstationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkstationClusterLRO(); + } + + public static void asyncDeleteWorkstationClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationClusterRequest request = + DeleteWorkstationClusterRequest.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .setForce(true) + .build(); + OperationFuture future = + workstationsClient.deleteWorkstationClusterOperationCallable().futureCall(request); + // Do something. + WorkstationCluster response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationCluster_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java new file mode 100644 index 000000000000..983e50871326 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java @@ -0,0 +1,51 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationCluster_sync] +import com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationCluster { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationCluster(); + } + + public static void syncDeleteWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationClusterRequest request = + DeleteWorkstationClusterRequest.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .setForce(true) + .build(); + WorkstationCluster response = workstationsClient.deleteWorkstationClusterAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationCluster_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java new file mode 100644 index 000000000000..c179e4724108 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java @@ -0,0 +1,43 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationCluster_String_sync] +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationClusterString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationClusterString(); + } + + public static void syncDeleteWorkstationClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString(); + WorkstationCluster response = workstationsClient.deleteWorkstationClusterAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationCluster_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java new file mode 100644 index 000000000000..2cd21b782f13 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java @@ -0,0 +1,43 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationCluster_Workstationclustername_sync] +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationClusterWorkstationclustername { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationClusterWorkstationclustername(); + } + + public static void syncDeleteWorkstationClusterWorkstationclustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationCluster response = workstationsClient.deleteWorkstationClusterAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationCluster_Workstationclustername_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java new file mode 100644 index 000000000000..e27c9f33fd7a --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteWorkstationConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkstationConfig(); + } + + public static void asyncDeleteWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationConfigRequest request = + DeleteWorkstationConfigRequest.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .setForce(true) + .build(); + ApiFuture future = + workstationsClient.deleteWorkstationConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationConfig_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java new file mode 100644 index 000000000000..1d4ae5fbf6b0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncDeleteWorkstationConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteWorkstationConfigLRO(); + } + + public static void asyncDeleteWorkstationConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationConfigRequest request = + DeleteWorkstationConfigRequest.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .setForce(true) + .build(); + OperationFuture future = + workstationsClient.deleteWorkstationConfigOperationCallable().futureCall(request); + // Do something. + WorkstationConfig response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationConfig_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java new file mode 100644 index 000000000000..8e345a67738c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationConfig_sync] +import com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationConfig { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationConfig(); + } + + public static void syncDeleteWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + DeleteWorkstationConfigRequest request = + DeleteWorkstationConfigRequest.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .setForce(true) + .build(); + WorkstationConfig response = workstationsClient.deleteWorkstationConfigAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationConfig_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java new file mode 100644 index 000000000000..498fd1266fcf --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java @@ -0,0 +1,45 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationConfig_String_sync] +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationConfigString(); + } + + public static void syncDeleteWorkstationConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString(); + WorkstationConfig response = workstationsClient.deleteWorkstationConfigAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationConfig_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java new file mode 100644 index 000000000000..19156a4b01ba --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java @@ -0,0 +1,44 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_DeleteWorkstationConfig_Workstationconfigname_sync] +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncDeleteWorkstationConfigWorkstationconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteWorkstationConfigWorkstationconfigname(); + } + + public static void syncDeleteWorkstationConfigWorkstationconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + WorkstationConfig response = workstationsClient.deleteWorkstationConfigAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_DeleteWorkstationConfig_Workstationconfigname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java new file mode 100644 index 000000000000..c85ab6c3c6e3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java @@ -0,0 +1,57 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GenerateAccessToken_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.GenerateAccessTokenRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncGenerateAccessToken { + + public static void main(String[] args) throws Exception { + asyncGenerateAccessToken(); + } + + public static void asyncGenerateAccessToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GenerateAccessTokenRequest request = + GenerateAccessTokenRequest.newBuilder() + .setWorkstation( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .build(); + ApiFuture future = + workstationsClient.generateAccessTokenCallable().futureCall(request); + // Do something. + GenerateAccessTokenResponse response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_GenerateAccessToken_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java new file mode 100644 index 000000000000..bc519801d77e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java @@ -0,0 +1,53 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GenerateAccessToken_sync] +import com.google.cloud.workstations.v1.GenerateAccessTokenRequest; +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGenerateAccessToken { + + public static void main(String[] args) throws Exception { + syncGenerateAccessToken(); + } + + public static void syncGenerateAccessToken() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GenerateAccessTokenRequest request = + GenerateAccessTokenRequest.newBuilder() + .setWorkstation( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .build(); + GenerateAccessTokenResponse response = workstationsClient.generateAccessToken(request); + } + } +} +// [END workstations_v1_generated_Workstations_GenerateAccessToken_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java new file mode 100644 index 000000000000..6f94c1b80e77 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GenerateAccessToken_String_sync] +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGenerateAccessTokenString { + + public static void main(String[] args) throws Exception { + syncGenerateAccessTokenString(); + } + + public static void syncGenerateAccessTokenString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String workstation = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString(); + GenerateAccessTokenResponse response = workstationsClient.generateAccessToken(workstation); + } + } +} +// [END workstations_v1_generated_Workstations_GenerateAccessToken_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java new file mode 100644 index 000000000000..eb7c12f7572e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GenerateAccessToken_Workstationname_sync] +import com.google.cloud.workstations.v1.GenerateAccessTokenResponse; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGenerateAccessTokenWorkstationname { + + public static void main(String[] args) throws Exception { + syncGenerateAccessTokenWorkstationname(); + } + + public static void syncGenerateAccessTokenWorkstationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationName workstation = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + GenerateAccessTokenResponse response = workstationsClient.generateAccessToken(workstation); + } + } +} +// [END workstations_v1_generated_Workstations_GenerateAccessToken_Workstationname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..7f21e8c7b407 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,58 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = workstationsClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_GetIamPolicy_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..70adf22a44fc --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetIamPolicy_sync] +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = workstationsClient.getIamPolicy(request); + } + } +} +// [END workstations_v1_generated_Workstations_GetIamPolicy_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java new file mode 100644 index 000000000000..8ea0ebb62636 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java @@ -0,0 +1,57 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.GetWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncGetWorkstation { + + public static void main(String[] args) throws Exception { + asyncGetWorkstation(); + } + + public static void asyncGetWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetWorkstationRequest request = + GetWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .build(); + ApiFuture future = + workstationsClient.getWorkstationCallable().futureCall(request); + // Do something. + Workstation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstation_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java new file mode 100644 index 000000000000..36d01903670f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java @@ -0,0 +1,53 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstation_sync] +import com.google.cloud.workstations.v1.GetWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstation { + + public static void main(String[] args) throws Exception { + syncGetWorkstation(); + } + + public static void syncGetWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetWorkstationRequest request = + GetWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .build(); + Workstation response = workstationsClient.getWorkstation(request); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstation_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java new file mode 100644 index 000000000000..b5e1222e82b4 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstation_String_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationString { + + public static void main(String[] args) throws Exception { + syncGetWorkstationString(); + } + + public static void syncGetWorkstationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString(); + Workstation response = workstationsClient.getWorkstation(name); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstation_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java new file mode 100644 index 000000000000..ae38793751ae --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstation_Workstationname_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationWorkstationname { + + public static void main(String[] args) throws Exception { + syncGetWorkstationWorkstationname(); + } + + public static void syncGetWorkstationWorkstationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + Workstation response = workstationsClient.getWorkstation(name); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstation_Workstationname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java new file mode 100644 index 000000000000..53a0aec5de74 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java @@ -0,0 +1,52 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.GetWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncGetWorkstationCluster { + + public static void main(String[] args) throws Exception { + asyncGetWorkstationCluster(); + } + + public static void asyncGetWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetWorkstationClusterRequest request = + GetWorkstationClusterRequest.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .build(); + ApiFuture future = + workstationsClient.getWorkstationClusterCallable().futureCall(request); + // Do something. + WorkstationCluster response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationCluster_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java new file mode 100644 index 000000000000..6b021f521de1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationCluster_sync] +import com.google.cloud.workstations.v1.GetWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationCluster { + + public static void main(String[] args) throws Exception { + syncGetWorkstationCluster(); + } + + public static void syncGetWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetWorkstationClusterRequest request = + GetWorkstationClusterRequest.newBuilder() + .setName( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .build(); + WorkstationCluster response = workstationsClient.getWorkstationCluster(request); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationCluster_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java new file mode 100644 index 000000000000..554c7f074e88 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java @@ -0,0 +1,43 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationCluster_String_sync] +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationClusterString { + + public static void main(String[] args) throws Exception { + syncGetWorkstationClusterString(); + } + + public static void syncGetWorkstationClusterString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString(); + WorkstationCluster response = workstationsClient.getWorkstationCluster(name); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationCluster_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java new file mode 100644 index 000000000000..a0fa5babaa1c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java @@ -0,0 +1,43 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationCluster_Workstationclustername_sync] +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationClusterWorkstationclustername { + + public static void main(String[] args) throws Exception { + syncGetWorkstationClusterWorkstationclustername(); + } + + public static void syncGetWorkstationClusterWorkstationclustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationClusterName name = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + WorkstationCluster response = workstationsClient.getWorkstationCluster(name); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationCluster_Workstationclustername_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java new file mode 100644 index 000000000000..85805499554d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.GetWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncGetWorkstationConfig { + + public static void main(String[] args) throws Exception { + asyncGetWorkstationConfig(); + } + + public static void asyncGetWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetWorkstationConfigRequest request = + GetWorkstationConfigRequest.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .build(); + ApiFuture future = + workstationsClient.getWorkstationConfigCallable().futureCall(request); + // Do something. + WorkstationConfig response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationConfig_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java new file mode 100644 index 000000000000..7f4d16567332 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java @@ -0,0 +1,52 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationConfig_sync] +import com.google.cloud.workstations.v1.GetWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationConfig { + + public static void main(String[] args) throws Exception { + syncGetWorkstationConfig(); + } + + public static void syncGetWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + GetWorkstationConfigRequest request = + GetWorkstationConfigRequest.newBuilder() + .setName( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .build(); + WorkstationConfig response = workstationsClient.getWorkstationConfig(request); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationConfig_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java new file mode 100644 index 000000000000..c6c39108fa65 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java @@ -0,0 +1,45 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationConfig_String_sync] +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationConfigString { + + public static void main(String[] args) throws Exception { + syncGetWorkstationConfigString(); + } + + public static void syncGetWorkstationConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString(); + WorkstationConfig response = workstationsClient.getWorkstationConfig(name); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationConfig_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java new file mode 100644 index 000000000000..7948aed2d90b --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java @@ -0,0 +1,44 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_GetWorkstationConfig_Workstationconfigname_sync] +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncGetWorkstationConfigWorkstationconfigname { + + public static void main(String[] args) throws Exception { + syncGetWorkstationConfigWorkstationconfigname(); + } + + public static void syncGetWorkstationConfigWorkstationconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationConfigName name = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + WorkstationConfig response = workstationsClient.getWorkstationConfig(name); + } + } +} +// [END workstations_v1_generated_Workstations_GetWorkstationConfig_Workstationconfigname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java new file mode 100644 index 000000000000..c20066bc67ee --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncListUsableWorkstationConfigs { + + public static void main(String[] args) throws Exception { + asyncListUsableWorkstationConfigs(); + } + + public static void asyncListUsableWorkstationConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListUsableWorkstationConfigsRequest request = + ListUsableWorkstationConfigsRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workstationsClient.listUsableWorkstationConfigsPagedCallable().futureCall(request); + // Do something. + for (WorkstationConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java new file mode 100644 index 000000000000..4545e07db5b6 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_Paged_async] +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.common.base.Strings; + +public class AsyncListUsableWorkstationConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListUsableWorkstationConfigsPaged(); + } + + public static void asyncListUsableWorkstationConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListUsableWorkstationConfigsRequest request = + ListUsableWorkstationConfigsRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListUsableWorkstationConfigsResponse response = + workstationsClient.listUsableWorkstationConfigsCallable().call(request); + for (WorkstationConfig element : response.getWorkstationConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_Paged_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java new file mode 100644 index 000000000000..c1ac91e5e0d1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java @@ -0,0 +1,53 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_sync] +import com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListUsableWorkstationConfigs { + + public static void main(String[] args) throws Exception { + syncListUsableWorkstationConfigs(); + } + + public static void syncListUsableWorkstationConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListUsableWorkstationConfigsRequest request = + ListUsableWorkstationConfigsRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (WorkstationConfig element : + workstationsClient.listUsableWorkstationConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java new file mode 100644 index 000000000000..79e1acd30c53 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java @@ -0,0 +1,46 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_String_sync] +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListUsableWorkstationConfigsString { + + public static void main(String[] args) throws Exception { + syncListUsableWorkstationConfigsString(); + } + + public static void syncListUsableWorkstationConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString(); + for (WorkstationConfig element : + workstationsClient.listUsableWorkstationConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java new file mode 100644 index 000000000000..dd037443bdd7 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java @@ -0,0 +1,46 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_Workstationclustername_sync] +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListUsableWorkstationConfigsWorkstationclustername { + + public static void main(String[] args) throws Exception { + syncListUsableWorkstationConfigsWorkstationclustername(); + } + + public static void syncListUsableWorkstationConfigsWorkstationclustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + for (WorkstationConfig element : + workstationsClient.listUsableWorkstationConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_Workstationclustername_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java new file mode 100644 index 000000000000..c1c5362946eb --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncListUsableWorkstations { + + public static void main(String[] args) throws Exception { + asyncListUsableWorkstations(); + } + + public static void asyncListUsableWorkstations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListUsableWorkstationsRequest request = + ListUsableWorkstationsRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workstationsClient.listUsableWorkstationsPagedCallable().futureCall(request); + // Do something. + for (Workstation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstations_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java new file mode 100644 index 000000000000..79fd304b28cc --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java @@ -0,0 +1,68 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstations_Paged_async] +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.ListUsableWorkstationsResponse; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.common.base.Strings; + +public class AsyncListUsableWorkstationsPaged { + + public static void main(String[] args) throws Exception { + asyncListUsableWorkstationsPaged(); + } + + public static void asyncListUsableWorkstationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListUsableWorkstationsRequest request = + ListUsableWorkstationsRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListUsableWorkstationsResponse response = + workstationsClient.listUsableWorkstationsCallable().call(request); + for (Workstation element : response.getWorkstationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstations_Paged_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java new file mode 100644 index 000000000000..3448d9aa5471 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstations_sync] +import com.google.cloud.workstations.v1.ListUsableWorkstationsRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListUsableWorkstations { + + public static void main(String[] args) throws Exception { + syncListUsableWorkstations(); + } + + public static void syncListUsableWorkstations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListUsableWorkstationsRequest request = + ListUsableWorkstationsRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Workstation element : workstationsClient.listUsableWorkstations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstations_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java new file mode 100644 index 000000000000..2b6b9c7cf879 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java @@ -0,0 +1,47 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstations_String_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListUsableWorkstationsString { + + public static void main(String[] args) throws Exception { + syncListUsableWorkstationsString(); + } + + public static void syncListUsableWorkstationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString(); + for (Workstation element : workstationsClient.listUsableWorkstations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstations_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java new file mode 100644 index 000000000000..a5b75bb9a889 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java @@ -0,0 +1,46 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListUsableWorkstations_Workstationconfigname_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListUsableWorkstationsWorkstationconfigname { + + public static void main(String[] args) throws Exception { + syncListUsableWorkstationsWorkstationconfigname(); + } + + public static void syncListUsableWorkstationsWorkstationconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + for (Workstation element : workstationsClient.listUsableWorkstations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListUsableWorkstations_Workstationconfigname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java new file mode 100644 index 000000000000..525999795b1d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationClusters_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncListWorkstationClusters { + + public static void main(String[] args) throws Exception { + asyncListWorkstationClusters(); + } + + public static void asyncListWorkstationClusters() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationClustersRequest request = + ListWorkstationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workstationsClient.listWorkstationClustersPagedCallable().futureCall(request); + // Do something. + for (WorkstationCluster element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationClusters_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java new file mode 100644 index 000000000000..c30557aaa226 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java @@ -0,0 +1,62 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationClusters_Paged_async] +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.ListWorkstationClustersResponse; +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.common.base.Strings; + +public class AsyncListWorkstationClustersPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkstationClustersPaged(); + } + + public static void asyncListWorkstationClustersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationClustersRequest request = + ListWorkstationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListWorkstationClustersResponse response = + workstationsClient.listWorkstationClustersCallable().call(request); + for (WorkstationCluster element : response.getWorkstationClustersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationClusters_Paged_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java new file mode 100644 index 000000000000..52d837cd31ae --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java @@ -0,0 +1,51 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationClusters_sync] +import com.google.cloud.workstations.v1.ListWorkstationClustersRequest; +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationClusters { + + public static void main(String[] args) throws Exception { + syncListWorkstationClusters(); + } + + public static void syncListWorkstationClusters() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationClustersRequest request = + ListWorkstationClustersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (WorkstationCluster element : + workstationsClient.listWorkstationClusters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationClusters_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java new file mode 100644 index 000000000000..6f1bbd897a7e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java @@ -0,0 +1,45 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationClusters_Locationname_sync] +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationClustersLocationname { + + public static void main(String[] args) throws Exception { + syncListWorkstationClustersLocationname(); + } + + public static void syncListWorkstationClustersLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (WorkstationCluster element : + workstationsClient.listWorkstationClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationClusters_Locationname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java new file mode 100644 index 000000000000..c877f4fd44c2 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java @@ -0,0 +1,45 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationClusters_String_sync] +import com.google.cloud.workstations.v1.LocationName; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationClustersString { + + public static void main(String[] args) throws Exception { + syncListWorkstationClustersString(); + } + + public static void syncListWorkstationClustersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (WorkstationCluster element : + workstationsClient.listWorkstationClusters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationClusters_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java new file mode 100644 index 000000000000..2182b1f681db --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncListWorkstationConfigs { + + public static void main(String[] args) throws Exception { + asyncListWorkstationConfigs(); + } + + public static void asyncListWorkstationConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationConfigsRequest request = + ListWorkstationConfigsRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workstationsClient.listWorkstationConfigsPagedCallable().futureCall(request); + // Do something. + for (WorkstationConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationConfigs_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java new file mode 100644 index 000000000000..0b7a101643d8 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationConfigs_Paged_async] +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.ListWorkstationConfigsResponse; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.common.base.Strings; + +public class AsyncListWorkstationConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkstationConfigsPaged(); + } + + public static void asyncListWorkstationConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationConfigsRequest request = + ListWorkstationConfigsRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListWorkstationConfigsResponse response = + workstationsClient.listWorkstationConfigsCallable().call(request); + for (WorkstationConfig element : response.getWorkstationConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationConfigs_Paged_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java new file mode 100644 index 000000000000..8182a95faf5a --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java @@ -0,0 +1,53 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationConfigs_sync] +import com.google.cloud.workstations.v1.ListWorkstationConfigsRequest; +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationConfigs { + + public static void main(String[] args) throws Exception { + syncListWorkstationConfigs(); + } + + public static void syncListWorkstationConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationConfigsRequest request = + ListWorkstationConfigsRequest.newBuilder() + .setParent( + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (WorkstationConfig element : + workstationsClient.listWorkstationConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationConfigs_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java new file mode 100644 index 000000000000..5d35a102c810 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java @@ -0,0 +1,46 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationConfigs_String_sync] +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationConfigsString { + + public static void main(String[] args) throws Exception { + syncListWorkstationConfigsString(); + } + + public static void syncListWorkstationConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]").toString(); + for (WorkstationConfig element : + workstationsClient.listWorkstationConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationConfigs_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java new file mode 100644 index 000000000000..1af99f5cc628 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java @@ -0,0 +1,46 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstationConfigs_Workstationclustername_sync] +import com.google.cloud.workstations.v1.WorkstationClusterName; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationConfigsWorkstationclustername { + + public static void main(String[] args) throws Exception { + syncListWorkstationConfigsWorkstationclustername(); + } + + public static void syncListWorkstationConfigsWorkstationclustername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationClusterName parent = + WorkstationClusterName.of("[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]"); + for (WorkstationConfig element : + workstationsClient.listWorkstationConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstationConfigs_Workstationclustername_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java new file mode 100644 index 000000000000..d2d8a57b763b --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncListWorkstations { + + public static void main(String[] args) throws Exception { + asyncListWorkstations(); + } + + public static void asyncListWorkstations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationsRequest request = + ListWorkstationsRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + workstationsClient.listWorkstationsPagedCallable().futureCall(request); + // Do something. + for (Workstation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstations_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java new file mode 100644 index 000000000000..0a1b7c0497bd --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java @@ -0,0 +1,68 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstations_Paged_async] +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.ListWorkstationsResponse; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.common.base.Strings; + +public class AsyncListWorkstationsPaged { + + public static void main(String[] args) throws Exception { + asyncListWorkstationsPaged(); + } + + public static void asyncListWorkstationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationsRequest request = + ListWorkstationsRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListWorkstationsResponse response = + workstationsClient.listWorkstationsCallable().call(request); + for (Workstation element : response.getWorkstationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstations_Paged_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java new file mode 100644 index 000000000000..22529159399e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstations_sync] +import com.google.cloud.workstations.v1.ListWorkstationsRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstations { + + public static void main(String[] args) throws Exception { + syncListWorkstations(); + } + + public static void syncListWorkstations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + ListWorkstationsRequest request = + ListWorkstationsRequest.newBuilder() + .setParent( + WorkstationConfigName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Workstation element : workstationsClient.listWorkstations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstations_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java new file mode 100644 index 000000000000..eaa0b47965a8 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java @@ -0,0 +1,47 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstations_String_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationsString { + + public static void main(String[] args) throws Exception { + syncListWorkstationsString(); + } + + public static void syncListWorkstationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]") + .toString(); + for (Workstation element : workstationsClient.listWorkstations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstations_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java new file mode 100644 index 000000000000..40455ce54205 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java @@ -0,0 +1,46 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_ListWorkstations_Workstationconfigname_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationConfigName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncListWorkstationsWorkstationconfigname { + + public static void main(String[] args) throws Exception { + syncListWorkstationsWorkstationconfigname(); + } + + public static void syncListWorkstationsWorkstationconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationConfigName parent = + WorkstationConfigName.of( + "[PROJECT]", "[LOCATION]", "[WORKSTATION_CLUSTER]", "[WORKSTATION_CONFIG]"); + for (Workstation element : workstationsClient.listWorkstations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workstations_v1_generated_Workstations_ListWorkstations_Workstationconfigname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..14b964788bac --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = workstationsClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_SetIamPolicy_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..b17d8f4fea2e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_SetIamPolicy_sync] +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = workstationsClient.setIamPolicy(request); + } + } +} +// [END workstations_v1_generated_Workstations_SetIamPolicy_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java new file mode 100644 index 000000000000..0bc6d19c0434 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StartWorkstation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncStartWorkstation { + + public static void main(String[] args) throws Exception { + asyncStartWorkstation(); + } + + public static void asyncStartWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + StartWorkstationRequest request = + StartWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = + workstationsClient.startWorkstationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_StartWorkstation_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java new file mode 100644 index 000000000000..df68f378c91c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StartWorkstation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncStartWorkstationLRO { + + public static void main(String[] args) throws Exception { + asyncStartWorkstationLRO(); + } + + public static void asyncStartWorkstationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + StartWorkstationRequest request = + StartWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + workstationsClient.startWorkstationOperationCallable().futureCall(request); + // Do something. + Workstation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_StartWorkstation_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java new file mode 100644 index 000000000000..1f1f3bdede57 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StartWorkstation_sync] +import com.google.cloud.workstations.v1.StartWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncStartWorkstation { + + public static void main(String[] args) throws Exception { + syncStartWorkstation(); + } + + public static void syncStartWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + StartWorkstationRequest request = + StartWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Workstation response = workstationsClient.startWorkstationAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_StartWorkstation_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java new file mode 100644 index 000000000000..4b6180f98ac8 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StartWorkstation_String_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncStartWorkstationString { + + public static void main(String[] args) throws Exception { + syncStartWorkstationString(); + } + + public static void syncStartWorkstationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString(); + Workstation response = workstationsClient.startWorkstationAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_StartWorkstation_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java new file mode 100644 index 000000000000..c196bbdb8326 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StartWorkstation_Workstationname_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncStartWorkstationWorkstationname { + + public static void main(String[] args) throws Exception { + syncStartWorkstationWorkstationname(); + } + + public static void syncStartWorkstationWorkstationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + Workstation response = workstationsClient.startWorkstationAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_StartWorkstation_Workstationname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java new file mode 100644 index 000000000000..f01b525bbbb0 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StopWorkstation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; + +public class AsyncStopWorkstation { + + public static void main(String[] args) throws Exception { + asyncStopWorkstation(); + } + + public static void asyncStopWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + StopWorkstationRequest request = + StopWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = + workstationsClient.stopWorkstationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_StopWorkstation_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java new file mode 100644 index 000000000000..c4f4527060a8 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java @@ -0,0 +1,60 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StopWorkstation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class AsyncStopWorkstationLRO { + + public static void main(String[] args) throws Exception { + asyncStopWorkstationLRO(); + } + + public static void asyncStopWorkstationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + StopWorkstationRequest request = + StopWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + workstationsClient.stopWorkstationOperationCallable().futureCall(request); + // Do something. + Workstation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_StopWorkstation_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java new file mode 100644 index 000000000000..8fd00e4f6d67 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StopWorkstation_sync] +import com.google.cloud.workstations.v1.StopWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncStopWorkstation { + + public static void main(String[] args) throws Exception { + syncStopWorkstation(); + } + + public static void syncStopWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + StopWorkstationRequest request = + StopWorkstationRequest.newBuilder() + .setName( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + Workstation response = workstationsClient.stopWorkstationAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_StopWorkstation_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java new file mode 100644 index 000000000000..8299cee4ce3c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StopWorkstation_String_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncStopWorkstationString { + + public static void main(String[] args) throws Exception { + syncStopWorkstationString(); + } + + public static void syncStopWorkstationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + String name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString(); + Workstation response = workstationsClient.stopWorkstationAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_StopWorkstation_String_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java new file mode 100644 index 000000000000..d7cd6db5ce49 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_StopWorkstation_Workstationname_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; + +public class SyncStopWorkstationWorkstationname { + + public static void main(String[] args) throws Exception { + syncStopWorkstationWorkstationname(); + } + + public static void syncStopWorkstationWorkstationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationName name = + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]"); + Workstation response = workstationsClient.stopWorkstationAsync(name).get(); + } + } +} +// [END workstations_v1_generated_Workstations_StopWorkstation_Workstationname_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..4f961cd77638 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,59 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + workstationsClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_TestIamPermissions_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..8e06be2f2309 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,55 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_TestIamPermissions_sync] +import com.google.cloud.workstations.v1.WorkstationName; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + WorkstationName.of( + "[PROJECT]", + "[LOCATION]", + "[WORKSTATION_CLUSTER]", + "[WORKSTATION_CONFIG]", + "[WORKSTATION]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = workstationsClient.testIamPermissions(request); + } + } +} +// [END workstations_v1_generated_Workstations_TestIamPermissions_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java new file mode 100644 index 000000000000..f12a1e131caf --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkstation { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkstation(); + } + + public static void asyncUpdateWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationRequest request = + UpdateWorkstationRequest.newBuilder() + .setWorkstation(Workstation.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + ApiFuture future = + workstationsClient.updateWorkstationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstation_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java new file mode 100644 index 000000000000..6defa8c3f46b --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkstationLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkstationLRO(); + } + + public static void asyncUpdateWorkstationLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationRequest request = + UpdateWorkstationRequest.newBuilder() + .setWorkstation(Workstation.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + OperationFuture future = + workstationsClient.updateWorkstationOperationCallable().futureCall(request); + // Do something. + Workstation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstation_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java new file mode 100644 index 000000000000..0750c1bef48f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstation_sync] +import com.google.cloud.workstations.v1.UpdateWorkstationRequest; +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkstation { + + public static void main(String[] args) throws Exception { + syncUpdateWorkstation(); + } + + public static void syncUpdateWorkstation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationRequest request = + UpdateWorkstationRequest.newBuilder() + .setWorkstation(Workstation.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + Workstation response = workstationsClient.updateWorkstationAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstation_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java new file mode 100644 index 000000000000..0f86e818cb7d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java @@ -0,0 +1,44 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstation_WorkstationFieldmask_sync] +import com.google.cloud.workstations.v1.Workstation; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkstationWorkstationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWorkstationWorkstationFieldmask(); + } + + public static void syncUpdateWorkstationWorkstationFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + Workstation workstation = Workstation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Workstation response = + workstationsClient.updateWorkstationAsync(workstation, updateMask).get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstation_WorkstationFieldmask_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java new file mode 100644 index 000000000000..6bfac490fb69 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationCluster_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkstationCluster { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkstationCluster(); + } + + public static void asyncUpdateWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationClusterRequest request = + UpdateWorkstationClusterRequest.newBuilder() + .setWorkstationCluster(WorkstationCluster.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + ApiFuture future = + workstationsClient.updateWorkstationClusterCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationCluster_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java new file mode 100644 index 000000000000..5158bb0525b4 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationCluster_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkstationClusterLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkstationClusterLRO(); + } + + public static void asyncUpdateWorkstationClusterLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationClusterRequest request = + UpdateWorkstationClusterRequest.newBuilder() + .setWorkstationCluster(WorkstationCluster.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + OperationFuture future = + workstationsClient.updateWorkstationClusterOperationCallable().futureCall(request); + // Do something. + WorkstationCluster response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationCluster_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java new file mode 100644 index 000000000000..1bca78d4e933 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationCluster_sync] +import com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest; +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkstationCluster { + + public static void main(String[] args) throws Exception { + syncUpdateWorkstationCluster(); + } + + public static void syncUpdateWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationClusterRequest request = + UpdateWorkstationClusterRequest.newBuilder() + .setWorkstationCluster(WorkstationCluster.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + WorkstationCluster response = workstationsClient.updateWorkstationClusterAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationCluster_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java new file mode 100644 index 000000000000..a41b844be7b3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java @@ -0,0 +1,44 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationCluster_WorkstationclusterFieldmask_sync] +import com.google.cloud.workstations.v1.WorkstationCluster; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkstationClusterWorkstationclusterFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWorkstationClusterWorkstationclusterFieldmask(); + } + + public static void syncUpdateWorkstationClusterWorkstationclusterFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationCluster workstationCluster = WorkstationCluster.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + WorkstationCluster response = + workstationsClient.updateWorkstationClusterAsync(workstationCluster, updateMask).get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationCluster_WorkstationclusterFieldmask_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java new file mode 100644 index 000000000000..a4b8dc5da834 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkstationConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkstationConfig(); + } + + public static void asyncUpdateWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationConfigRequest request = + UpdateWorkstationConfigRequest.newBuilder() + .setWorkstationConfig(WorkstationConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + ApiFuture future = + workstationsClient.updateWorkstationConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationConfig_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java new file mode 100644 index 000000000000..c3d4ab93dcf1 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java @@ -0,0 +1,54 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.workstations.v1.OperationMetadata; +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateWorkstationConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateWorkstationConfigLRO(); + } + + public static void asyncUpdateWorkstationConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationConfigRequest request = + UpdateWorkstationConfigRequest.newBuilder() + .setWorkstationConfig(WorkstationConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + OperationFuture future = + workstationsClient.updateWorkstationConfigOperationCallable().futureCall(request); + // Do something. + WorkstationConfig response = future.get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationConfig_LRO_async] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java new file mode 100644 index 000000000000..43ceab77992c --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java @@ -0,0 +1,49 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationConfig_sync] +import com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest; +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkstationConfig { + + public static void main(String[] args) throws Exception { + syncUpdateWorkstationConfig(); + } + + public static void syncUpdateWorkstationConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + UpdateWorkstationConfigRequest request = + UpdateWorkstationConfigRequest.newBuilder() + .setWorkstationConfig(WorkstationConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setValidateOnly(true) + .setAllowMissing(true) + .build(); + WorkstationConfig response = workstationsClient.updateWorkstationConfigAsync(request).get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationConfig_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java new file mode 100644 index 000000000000..ecd350e89d3f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java @@ -0,0 +1,44 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_Workstations_UpdateWorkstationConfig_WorkstationconfigFieldmask_sync] +import com.google.cloud.workstations.v1.WorkstationConfig; +import com.google.cloud.workstations.v1.WorkstationsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateWorkstationConfigWorkstationconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateWorkstationConfigWorkstationconfigFieldmask(); + } + + public static void syncUpdateWorkstationConfigWorkstationconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (WorkstationsClient workstationsClient = WorkstationsClient.create()) { + WorkstationConfig workstationConfig = WorkstationConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + WorkstationConfig response = + workstationsClient.updateWorkstationConfigAsync(workstationConfig, updateMask).get(); + } + } +} +// [END workstations_v1_generated_Workstations_UpdateWorkstationConfig_WorkstationconfigFieldmask_sync] diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java new file mode 100644 index 000000000000..e1b9d6082d3a --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java @@ -0,0 +1,48 @@ +/* + * 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.workstations.v1.samples; + +// [START workstations_v1_generated_WorkstationsSettings_GetWorkstationCluster_sync] +import com.google.cloud.workstations.v1.WorkstationsSettings; +import java.time.Duration; + +public class SyncGetWorkstationCluster { + + public static void main(String[] args) throws Exception { + syncGetWorkstationCluster(); + } + + public static void syncGetWorkstationCluster() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + WorkstationsSettings.Builder workstationsSettingsBuilder = WorkstationsSettings.newBuilder(); + workstationsSettingsBuilder + .getWorkstationClusterSettings() + .setRetrySettings( + workstationsSettingsBuilder + .getWorkstationClusterSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + WorkstationsSettings workstationsSettings = workstationsSettingsBuilder.build(); + } +} +// [END workstations_v1_generated_WorkstationsSettings_GetWorkstationCluster_sync] diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java index e793dc609bd1..2aa88795eb95 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java @@ -33,6 +33,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.workstations.v1beta.stub.WorkstationsStubSettings; diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java index f7ce0523e88e..48f9e10ab969 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java @@ -71,6 +71,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-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java index 43202f50f1f9..d6d49bd45010 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java @@ -35,6 +35,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-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java diff --git a/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java new file mode 100644 index 000000000000..fa02d0008590 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java @@ -0,0 +1,1969 @@ +package com.google.cloud.workstations.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1beta/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.workstations.v1beta.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1beta.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationMethod() { + io.grpc.MethodDescriptor getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationsMethod() { + io.grpc.MethodDescriptor getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { + io.grpc.MethodDescriptor getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartWorkstationMethod() { + io.grpc.MethodDescriptor getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopWorkstationMethod() { + io.grpc.MethodDescriptor getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WorkstationsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + default void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static abstract class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.Workstation getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation((com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation((com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation((com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private static abstract class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java index ebdec9786a4c..978888c56911 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -45,45 +26,38 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -125,18 +97,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ @java.lang.Override @@ -145,29 +113,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -178,16 +146,11 @@ public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -195,55 +158,38 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -252,7 +198,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,10 +239,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,21 +254,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.workstations.v1beta.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationClusterId() + .equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -341,145 +292,137 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.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(); @@ -496,16 +439,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance(); } @java.lang.Override @@ -519,17 +460,13 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -538,10 +475,9 @@ private void buildPartial0( result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = - workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -552,51 +488,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -639,38 +570,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -680,27 +607,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -709,23 +631,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -733,39 +652,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -775,23 +683,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -801,20 +703,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationClusterId_ = ""; /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -823,21 +723,20 @@ public java.lang.String getWorkstationClusterId() { } } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -845,35 +744,28 @@ public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationClusterId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -883,21 +775,17 @@ public Builder clearWorkstationClusterId() { return this; } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -907,61 +795,41 @@ public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -975,15 +843,11 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -997,23 +861,17 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstationCluster_ != null - && workstationCluster_ - != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -1026,15 +884,11 @@ public Builder mergeWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1047,82 +901,61 @@ public Builder clearWorkstationCluster() { return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), getParentForChildren(), isClean()); + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1130,35 +963,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1167,9 +994,9 @@ public Builder clearValidateOnly() { 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); } @@ -1179,43 +1006,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1227,8 +1052,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java index d51142cf084c..f1a7d3b9103b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java @@ -1,133 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationClusterRequestOrBuilder - extends +public interface CreateWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString + getWorkstationClusterIdBytes(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java index ad81aa983574..fa9f1c2284dc 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -45,45 +26,38 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -125,18 +97,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** - * - * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ @java.lang.Override @@ -145,29 +113,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -178,16 +146,11 @@ public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -195,55 +158,38 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -252,7 +198,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,10 +239,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,21 +254,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.workstations.v1beta.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationConfigId() + .equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -341,145 +292,137 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.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(); @@ -496,16 +439,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -519,17 +460,13 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -538,10 +475,9 @@ private void buildPartial0( result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = - workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -552,51 +488,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -639,38 +570,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -680,27 +607,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -709,23 +631,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -733,39 +652,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -775,23 +683,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -801,20 +703,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationConfigId_ = ""; /** - * - * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -823,21 +723,20 @@ public java.lang.String getWorkstationConfigId() { } } /** - * - * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -845,35 +744,28 @@ public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { } } /** - * - * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -883,21 +775,17 @@ public Builder clearWorkstationConfigId() { return this; } /** - * - * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -907,61 +795,41 @@ public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -975,15 +843,11 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -997,23 +861,17 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstationConfig_ != null - && workstationConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -1026,15 +884,11 @@ public Builder mergeWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1047,82 +901,61 @@ public Builder clearWorkstationConfig() { return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), getParentForChildren(), isClean()); + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1130,35 +963,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1167,9 +994,9 @@ public Builder clearValidateOnly() { 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); } @@ -1179,43 +1006,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1227,8 +1052,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java similarity index 53% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java index 5a0a2f79f046..6f2163a758aa 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java @@ -1,133 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationConfigRequestOrBuilder - extends +public interface CreateWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** - * - * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString + getWorkstationConfigIdBytes(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java index d99d750626ac..a86de58319cd 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -44,45 +26,38 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -91,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -124,18 +97,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ @java.lang.Override @@ -144,29 +113,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationIdBytes() { + public com.google.protobuf.ByteString + getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationId_ = b; return b; } else { @@ -177,16 +146,11 @@ public com.google.protobuf.ByteString getWorkstationIdBytes() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ @java.lang.Override @@ -194,54 +158,38 @@ public boolean hasWorkstation() { return workstation_ != null; } /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -250,7 +198,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,10 +239,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -304,21 +254,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.workstations.v1beta.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = - (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationId().equals(other.getWorkstationId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationId() + .equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,143 +292,137 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.CreateWorkstationRequest) com.google.cloud.workstations.v1beta.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationRequest.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(); @@ -492,14 +439,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance(); } @@ -514,17 +460,13 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = - new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -533,8 +475,9 @@ private void buildPartial0( result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = - workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -545,39 +488,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -585,9 +527,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -630,37 +570,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -670,27 +607,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -699,23 +631,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -723,39 +652,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -765,23 +683,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -791,20 +703,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationId_ = ""; /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -813,21 +723,20 @@ public java.lang.String getWorkstationId() { } } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString getWorkstationIdBytes() { + public com.google.protobuf.ByteString + getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationId_ = b; return b; } else { @@ -835,35 +744,28 @@ public com.google.protobuf.ByteString getWorkstationIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -873,21 +775,17 @@ public Builder clearWorkstationId() { return this; } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -897,58 +795,39 @@ public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } else { return workstationBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -964,15 +843,11 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -986,22 +861,17 @@ public Builder setWorkstation( return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstation_ != null - && workstation_ - != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -1014,15 +884,11 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1035,15 +901,11 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -1051,64 +913,49 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), getParentForChildren(), isClean()); + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1116,35 +963,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1153,9 +994,9 @@ public Builder clearValidateOnly() { 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); } @@ -1165,13 +1006,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(); } @@ -1180,27 +1020,27 @@ public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1215,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java index 533557c89d4c..edc1a25c09f9 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java @@ -1,133 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationRequestOrBuilder - extends +public interface CreateWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ java.lang.String getWorkstationId(); /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString getWorkstationIdBytes(); + com.google.protobuf.ByteString + getWorkstationIdBytes(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java index 25a419b17ace..9fb43202ccb7 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -45,45 +26,38 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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,31 +66,29 @@ 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. Name of the workstation cluster to delete.
    * 
* - * - * 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,14 +99,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -143,19 +112,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -164,30 +129,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -198,8 +163,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** - * - * *
    * If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -207,7 +170,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -216,7 +178,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -254,13 +216,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -270,18 +234,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.workstations.v1beta.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,149 +263,142 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.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(); @@ -451,16 +411,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance(); } @java.lang.Override @@ -474,17 +432,13 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -504,51 +458,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -591,37 +540,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -631,27 +575,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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; @@ -660,23 +599,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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 { @@ -684,39 +620,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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() { @@ -726,23 +651,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -750,16 +669,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -767,33 +683,27 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -805,21 +715,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -828,22 +736,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -851,37 +758,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -891,22 +791,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -914,10 +810,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -925,7 +819,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -933,8 +826,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -942,20 +833,17 @@ public boolean getForce() {
      * 
* * bool force = 4; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -963,7 +851,6 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -972,9 +859,9 @@ public Builder clearForce() { 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); } @@ -984,43 +871,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,8 +917,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java index 41d2bcf52e1b..95a74336f7ee 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,100 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationClusterRequestOrBuilder - extends +public interface DeleteWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the review, but do not apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -102,7 +67,6 @@ public interface DeleteWorkstationClusterRequestOrBuilder
    * 
* * bool force = 4; - * * @return The force. */ boolean getForce(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java similarity index 64% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java index b1b7c188c03a..557d18caa9d6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -45,45 +26,38 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the config to delete.
    * 
* - * - * 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,31 +66,29 @@ 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. Name of the config to delete.
    * 
* - * - * 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,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -144,19 +113,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -165,30 +130,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -199,15 +164,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** - * - * *
    * If set, any Workstations in the config will also be deleted. Otherwise,
    * the request will work only if the config has no workstations.
    * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -216,7 +178,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -254,13 +216,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -270,18 +234,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.workstations.v1beta.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,149 +263,142 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.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(); @@ -451,16 +411,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -474,17 +432,13 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -504,51 +458,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -591,37 +540,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -631,27 +575,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the config to delete.
      * 
* - * - * 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; @@ -660,23 +599,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the config to delete.
      * 
* - * - * 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 { @@ -684,39 +620,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the config to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the config to delete.
      * 
* - * - * 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() { @@ -726,23 +651,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the config to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -750,17 +669,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -768,35 +684,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -808,21 +718,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -831,22 +739,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -854,37 +761,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -894,22 +794,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -917,17 +813,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; - * * @return The force. */ @java.lang.Override @@ -935,35 +828,29 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -972,9 +859,9 @@ public Builder clearForce() { 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); } @@ -984,43 +871,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,8 +917,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java similarity index 58% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java index fb167b7595bb..373801622c51 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,108 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationConfigRequestOrBuilder - extends +public interface DeleteWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the config to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the config to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * If set, any Workstations in the config will also be deleted. Otherwise,
    * the request will work only if the config has no workstations.
    * 
* * bool force = 4; - * * @return The force. */ boolean getForce(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java index 04334e636837..32e9b2f233f6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,45 +26,38 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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,31 +66,29 @@ 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. Name of the workstation to delete.
    * 
* - * - * 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 { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -143,19 +113,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -164,30 +130,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -196,7 +162,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -231,7 +197,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -244,17 +211,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.workstations.v1beta.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = - (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,7 +238,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -278,136 +248,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.DeleteWorkstationRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.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(); @@ -419,14 +382,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance(); } @@ -441,17 +403,13 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = - new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -468,39 +426,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -508,9 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -550,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -584,27 +535,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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; @@ -613,23 +559,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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 { @@ -637,39 +580,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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() { @@ -679,23 +611,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -703,17 +629,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -721,35 +644,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -761,21 +678,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -784,22 +699,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -807,37 +721,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -847,31 +754,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -881,13 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(); } @@ -896,27 +798,27 @@ public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java index 7f39eea8b194..6ab851cf5373 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java @@ -1,95 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationRequestOrBuilder - extends +public interface DeleteWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java index 93d127abc9ff..7e88bdfe1dbc 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateAccessTokenRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; private java.lang.Object expiration_; - public enum ExpirationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; - private ExpirationCase(int value) { this.value = value; } @@ -94,42 +72,33 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: - return EXPIRE_TIME; - case 3: - return TTL; - case 0: - return EXPIRATION_NOT_SET; - default: - return null; + case 2: return EXPIRE_TIME; + case 3: return TTL; + case 0: return EXPIRATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public static final int WORKSTATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object workstation_ = ""; /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ @java.lang.Override @@ -138,32 +107,30 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationBytes() { + public com.google.protobuf.ByteString + getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstation_ = b; return b; } else { @@ -173,8 +140,6 @@ public com.google.protobuf.ByteString getWorkstationBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -183,7 +148,6 @@ public com.google.protobuf.ByteString getWorkstationBytes() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -191,8 +155,6 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -201,19 +163,16 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -226,15 +185,13 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-      return (com.google.protobuf.Timestamp) expiration_;
+       return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -242,7 +199,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -250,8 +206,6 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -259,19 +213,16 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -283,13 +234,12 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-      return (com.google.protobuf.Duration) expiration_;
+       return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -301,7 +251,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(workstation_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_);
     }
@@ -324,14 +275,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_);
     }
     if (expirationCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.protobuf.Timestamp) expiration_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_);
     }
     if (expirationCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.protobuf.Duration) expiration_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.protobuf.Duration) expiration_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -341,22 +290,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.workstations.v1beta.GenerateAccessTokenRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other =
-        (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj;
+    com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj;
 
-    if (!getWorkstation().equals(other.getWorkstation())) return false;
+    if (!getWorkstation()
+        .equals(other.getWorkstation())) return false;
     if (!getExpirationCase().equals(other.getExpirationCase())) return false;
     switch (expirationCase_) {
       case 2:
-        if (!getExpireTime().equals(other.getExpireTime())) return false;
+        if (!getExpireTime()
+            .equals(other.getExpireTime())) return false;
         break;
       case 3:
-        if (!getTtl().equals(other.getTtl())) return false;
+        if (!getTtl()
+            .equals(other.getTtl())) return false;
         break;
       case 0:
       default:
@@ -392,136 +343,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) com.google.cloud.workstations.v1beta.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.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(); @@ -539,14 +483,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance(); } @@ -561,32 +504,29 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = - new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.workstation_ = workstation_; } } - private void buildPartialOneofs( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && + expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && ttlBuilder_ != null) { + if (expirationCase_ == 3 && + ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -595,70 +535,63 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { - if (other - == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { + if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: - { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: - { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: - { - break; - } + case EXPIRE_TIME: { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -686,31 +619,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getTtlFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 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) { @@ -720,12 +653,12 @@ public Builder mergeFrom( } // finally return this; } - private int expirationCase_ = 0; private java.lang.Object expiration_; - - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public Builder clearExpiration() { @@ -739,23 +672,19 @@ public Builder clearExpiration() { private java.lang.Object workstation_ = ""; /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -764,24 +693,21 @@ public java.lang.String getWorkstation() { } } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ - public com.google.protobuf.ByteString getWorkstationBytes() { + public com.google.protobuf.ByteString + getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstation_ = b; return b; } else { @@ -789,41 +715,30 @@ public com.google.protobuf.ByteString getWorkstationBytes() { } } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -833,24 +748,18 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000001; @@ -859,13 +768,8 @@ public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -874,7 +778,6 @@ public Builder setWorkstationBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -882,8 +785,6 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -892,7 +793,6 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -910,8 +810,6 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -935,8 +833,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -946,7 +842,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -957,8 +854,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -970,12 +865,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2
-            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 2 &&
+            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -991,8 +884,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -1019,8 +910,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -1034,8 +923,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -1057,8 +944,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -1069,20 +954,17 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_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> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -1091,13 +973,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        ttlBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1105,7 +982,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -1113,8 +989,6 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** - * - * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1122,7 +996,6 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ @java.lang.Override @@ -1140,8 +1013,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1164,8 +1035,6 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1174,7 +1043,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -1185,8 +1055,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1197,12 +1065,10 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3
-            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 3 &&
+            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -1218,8 +1084,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1245,8 +1109,6 @@ public Builder clearTtl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1259,8 +1121,6 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1281,8 +1141,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1292,29 +1150,26 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     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> 
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
+        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
       onChanged();
       return ttlBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1324,43 +1179,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest)
-  private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest();
   }
 
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
-      getDefaultInstance() {
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GenerateAccessTokenRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GenerateAccessTokenRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1372,8 +1225,9 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
similarity index 72%
rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
index 36fee83bf830..a4ff337a51d0 100644
--- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
+++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
@@ -1,62 +1,35 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workstations/v1beta/workstations.proto
 
 package com.google.cloud.workstations.v1beta;
 
-public interface GenerateAccessTokenRequestOrBuilder
-    extends
+public interface GenerateAccessTokenRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ java.lang.String getWorkstation(); /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ - com.google.protobuf.ByteString getWorkstationBytes(); + com.google.protobuf.ByteString + getWorkstationBytes(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -65,13 +38,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -80,13 +50,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -99,8 +66,6 @@ public interface GenerateAccessTokenRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -108,13 +73,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -122,13 +84,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -139,6 +98,5 @@ public interface GenerateAccessTokenRequestOrBuilder
    */
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
-  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase
-      getExpirationCase();
+  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase getExpirationCase();
 }
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
similarity index 68%
rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
index fe285b0f20e6..e75da36be6eb 100644
--- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
+++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
@@ -1,79 +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/workstations/v1beta/workstations.proto
 
 package com.google.cloud.workstations.v1beta;
 
 /**
- *
- *
  * 
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateAccessTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -82,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string access_token = 1; - * * @return The accessToken. */ @java.lang.Override @@ -91,15 +68,14 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -108,15 +84,16 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessTokenBytes() { + public com.google.protobuf.ByteString + getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessToken_ = b; return b; } else { @@ -127,14 +104,11 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -142,14 +116,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -157,8 +128,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Time at which the generated token will expire.
    * 
@@ -171,7 +140,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -203,7 +172,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,18 +183,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.workstations.v1beta.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = - (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; - if (!getAccessToken().equals(other.getAccessToken())) return false; + if (!getAccessToken() + .equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -249,136 +220,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) com.google.cloud.workstations.v1beta.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.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(); @@ -393,14 +357,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -415,23 +378,21 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse build() @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = - new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -439,50 +400,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { - if (other - == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { + if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -517,25 +474,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -545,13 +501,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessToken_ = ""; /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -560,13 +513,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; - * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -575,8 +528,6 @@ public java.lang.String getAccessToken() { } } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -585,14 +536,15 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString getAccessTokenBytes() { + public com.google.protobuf.ByteString + getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessToken_ = b; return b; } else { @@ -600,8 +552,6 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { } } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -610,22 +560,18 @@ public com.google.protobuf.ByteString getAccessTokenBytes() {
      * 
* * string access_token = 1; - * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -634,7 +580,6 @@ public Builder setAccessToken(java.lang.String value) {
      * 
* * string access_token = 1; - * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -644,8 +589,6 @@ public Builder clearAccessToken() { return this; } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -654,14 +597,12 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; - * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -671,47 +612,34 @@ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -732,15 +660,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -751,8 +678,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -761,9 +686,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -776,8 +701,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -795,8 +718,6 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -809,8 +730,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -821,14 +740,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -836,24 +752,21 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -863,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,8 +822,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java index e241a80c9b6b..cef295e3c5e3 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface GenerateAccessTokenResponseOrBuilder - extends +public interface GenerateAccessTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -34,13 +16,10 @@ public interface GenerateAccessTokenResponseOrBuilder
    * 
* * string access_token = 1; - * * @return The accessToken. */ java.lang.String getAccessToken(); /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -49,38 +28,30 @@ public interface GenerateAccessTokenResponseOrBuilder
    * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString getAccessTokenBytes(); + com.google.protobuf.ByteString + getAccessTokenBytes(); /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Time at which the generated token will expire.
    * 
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java similarity index 59% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java index 28d7b0098f38..a699a1f34a33 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java @@ -1,87 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -90,31 +65,29 @@ 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. Name of the requested resource.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.workstations.v1beta.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,138 +160,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) com.google.cloud.workstations.v1beta.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.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(); @@ -328,14 +292,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -350,17 +313,13 @@ public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -371,50 +330,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -446,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -468,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -497,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -521,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -563,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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,43 +526,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +572,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..6b550f876a1e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java index 1133f4c5f4a9..4858c6ac9c5e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java @@ -1,87 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -90,31 +65,29 @@ 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. Name of the requested resource.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.workstations.v1beta.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) com.google.cloud.workstations.v1beta.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.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(); @@ -326,14 +292,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -348,17 +313,13 @@ public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -369,50 +330,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -444,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -466,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -495,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -519,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -561,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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,43 +526,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +572,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..4243e50977ce --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java index 6f3c5068b0ec..c3b3ed2ab4e1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java @@ -1,87 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationRequest) GetWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -90,31 +65,29 @@ 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. Name of the requested resource.
    * 
* - * - * 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 { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,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_); } @@ -159,15 +132,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.workstations.v1beta.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationRequest other = - (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.GetWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GetWorkstationRequest) com.google.cloud.workstations.v1beta.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationRequest.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(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.workstations.v1beta.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationRequest result = - new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GetWorkstationRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) private static final com.google.cloud.workstations.v1beta.GetWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..a8371e1e9e04 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java index 496ae38db857..cc13b5e9d7ca 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java @@ -1,44 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +26,38 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -128,14 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,18 +112,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,29 +128,29 @@ 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; } } /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @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 { @@ -195,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +170,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_); } @@ -230,7 +194,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_); @@ -243,18 +208,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.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,139 +244,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder - .class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.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(); @@ -422,22 +378,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = - buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -446,17 +399,13 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -473,52 +422,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) other); + if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) { + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -558,31 +501,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -592,27 +531,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -621,23 +555,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -645,39 +576,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -687,23 +607,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,16 +625,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -728,33 +639,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -766,20 +671,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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; @@ -788,21 +691,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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 { @@ -810,35 +712,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -848,30 +743,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -881,44 +772,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,8 +818,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 51% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java index eadae7cec1b2..59b7856c2ce2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,92 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsRequestOrBuilder - extends +public interface ListUsableWorkstationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java index c8100e800e43..451c71f9adc6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java @@ -1,44 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -47,124 +27,100 @@ private ListUsableWorkstationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder - .class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - workstationConfigs_; + private java.util.List workstationConfigs_; /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -173,30 +129,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -205,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -252,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +224,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -300,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -322,18 +267,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.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,139 +307,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder - .class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.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(); @@ -512,22 +448,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = - buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -535,20 +468,15 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse buildPartial() { + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -565,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -577,52 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) other); + if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) { + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -641,10 +562,9 @@ public Builder mergeFrom( workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationConfigsFieldBuilder() - : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -691,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -734,39 +650,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List workstationConfigs_ = + java.util.Collections.emptyList(); private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = - new java.util.ArrayList( - workstationConfigs_); + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -774,14 +679,11 @@ private void ensureWorkstationConfigsIsMutable() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -791,14 +693,11 @@ public int getWorkstationConfigsCount() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -808,14 +707,11 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -832,14 +728,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -853,17 +746,13 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public Builder addWorkstationConfigs( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -877,14 +766,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -901,14 +787,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -922,14 +805,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -943,21 +823,18 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addAllWorkstationConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -965,14 +842,11 @@ public Builder addAllWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -985,14 +859,11 @@ public Builder clearWorkstationConfigs() { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -1005,49 +876,39 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigsBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( + int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); - } else { + return workstationConfigs_.get(index); } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1055,62 +916,45 @@ public Builder removeWorkstationConfigs(int index) { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder(int index) { - return getWorkstationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1122,21 +966,19 @@ public Builder removeWorkstationConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1145,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1168,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1208,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1231,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1284,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1377,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1410,44 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1459,8 +1258,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java index ba4f13fd0fad..ee1df19e661a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsResponseOrBuilder - extends +public interface ListUsableWorkstationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ int getWorkstationConfigsCount(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java index be2239a5de45..00acd1e78efb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,45 +26,38 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -91,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -126,14 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,18 +112,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -162,29 +128,29 @@ 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; } } /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @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 { @@ -193,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,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_); } @@ -228,7 +194,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_); @@ -241,17 +208,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.workstations.v1beta.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,138 +244,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.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(); @@ -418,16 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance(); } @java.lang.Override @@ -441,17 +399,13 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -468,51 +422,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -552,31 +501,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -586,27 +531,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -615,23 +555,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -639,39 +576,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -681,23 +607,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -705,16 +625,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -722,33 +639,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -760,20 +671,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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; @@ -782,21 +691,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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 { @@ -804,35 +712,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -842,30 +743,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -875,43 +772,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +818,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java similarity index 51% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java index 9c8c4043cda1..791aec409cdf 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java @@ -1,92 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsRequestOrBuilder - extends +public interface ListUsableWorkstationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java similarity index 71% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java index 24ed6ef2c5c7..fa12ce94c13e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,37 +27,33 @@ private ListUsableWorkstationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstations_; /** - * - * *
    * The requested workstations.
    * 
@@ -88,8 +65,6 @@ public java.util.List getWorks return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -97,13 +72,11 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -115,8 +88,6 @@ public int getWorkstationsCount() { return workstations_.size(); } /** - * - * *
    * The requested workstations.
    * 
@@ -128,8 +99,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** - * - * *
    * The requested workstations.
    * 
@@ -143,19 +112,15 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,30 +129,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, or empty if there are no more
    * results in the list.
    * 
* * 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,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -243,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +224,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -291,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -312,17 +267,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.workstations.v1beta.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,138 +307,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.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(); @@ -500,16 +448,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance(); } @java.lang.Override @@ -523,18 +469,14 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -551,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -563,51 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -626,10 +562,9 @@ public Builder mergeFrom( workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationsFieldBuilder() - : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -676,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -719,30 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = - new java.util.ArrayList( - workstations_); + workstations_ = new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; /** - * - * *
      * The requested workstations.
      * 
@@ -757,8 +679,6 @@ public java.util.List getWorks } } /** - * - * *
      * The requested workstations.
      * 
@@ -773,8 +693,6 @@ public int getWorkstationsCount() { } } /** - * - * *
      * The requested workstations.
      * 
@@ -789,8 +707,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** - * - * *
      * The requested workstations.
      * 
@@ -812,8 +728,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -832,8 +746,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -854,8 +766,6 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -877,8 +787,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -897,8 +805,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -917,8 +823,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -929,7 +833,8 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -937,8 +842,6 @@ public Builder addAllWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -956,8 +859,6 @@ public Builder clearWorkstations() { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -975,8 +876,6 @@ public Builder removeWorkstations(int index) { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -988,8 +887,6 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstations.
      * 
@@ -999,22 +896,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); - } else { + return workstations_.get(index); } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -1022,8 +916,6 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** - * - * *
      * The requested workstations.
      * 
@@ -1031,12 +923,10 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
@@ -1045,35 +935,30 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder() - .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workstations_ = null; } return workstationsBuilder_; @@ -1081,21 +966,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1104,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1127,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1167,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1190,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1243,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1336,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1369,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1417,8 +1258,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java index 9e6cd7b574a1..2574a0b6563a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsResponseOrBuilder - extends +public interface ListUsableWorkstationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List getWorkstationsList(); + java.util.List + getWorkstationsList(); /** - * - * *
    * The requested workstations.
    * 
@@ -44,8 +25,6 @@ public interface ListUsableWorkstationsResponseOrBuilder */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** - * - * *
    * The requested workstations.
    * 
@@ -54,102 +33,84 @@ public interface ListUsableWorkstationsResponseOrBuilder */ int getWorkstationsCount(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java index c9b5de6d1a69..eb21788198bc 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -45,45 +26,38 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -127,14 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,18 +112,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,29 +128,29 @@ 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; } } /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @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 { @@ -194,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +170,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_); } @@ -229,7 +194,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_); @@ -242,17 +208,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.workstations.v1beta.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = - (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,138 +244,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) com.google.cloud.workstations.v1beta.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.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 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance(); } @java.lang.Override @@ -442,17 +399,13 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = - new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -469,51 +422,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -553,31 +501,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,27 +531,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -616,23 +555,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -640,39 +576,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -682,23 +607,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -706,16 +625,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -723,33 +639,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -761,20 +671,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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; @@ -783,21 +691,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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 { @@ -805,35 +712,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -843,30 +743,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -876,43 +772,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +818,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java similarity index 51% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java index 0c149c0553c4..365c0220ff98 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java @@ -1,92 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersRequestOrBuilder - extends +public interface ListWorkstationClustersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java index dee4842d8e8f..e7240cc7fb54 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,123 +27,100 @@ private ListWorkstationClustersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - workstationClusters_; + private java.util.List workstationClusters_; /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public java.util.List - getWorkstationClustersList() { + public java.util.List getWorkstationClustersList() { return workstationClusters_; } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClustersOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -171,30 +129,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -203,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -250,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +224,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 < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -298,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -320,17 +267,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.workstations.v1beta.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = - (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList() + .equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -358,138 +307,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) com.google.cloud.workstations.v1beta.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.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(); @@ -508,16 +448,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance(); } @java.lang.Override @@ -531,18 +469,14 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buil @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = - new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -559,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -571,51 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance()) return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -634,10 +562,9 @@ public Builder mergeFrom( workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationClustersFieldBuilder() - : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationClustersFieldBuilder() : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -684,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -727,39 +650,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationClusters_ = java.util.Collections.emptyList(); - + private java.util.List workstationClusters_ = + java.util.Collections.emptyList(); private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = - new java.util.ArrayList( - workstationClusters_); + workstationClusters_ = new java.util.ArrayList(workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - workstationClustersBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClustersBuilder_; /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersList() { + public java.util.List getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -767,14 +679,11 @@ private void ensureWorkstationClustersIsMutable() { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -784,17 +693,13 @@ public int getWorkstationClustersCount() { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { return workstationClusters_.get(index); } else { @@ -802,14 +707,11 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClu } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -826,18 +728,14 @@ public Builder setWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder setWorkstationClusters( - int index, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.set(index, builderForValue.build()); @@ -848,17 +746,13 @@ public Builder setWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public Builder addWorkstationClusters( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder addWorkstationClusters(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -872,14 +766,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -896,14 +787,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -917,18 +805,14 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( - int index, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.add(index, builderForValue.build()); @@ -939,21 +823,18 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addAllWorkstationClusters( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -961,14 +842,11 @@ public Builder addAllWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -981,14 +859,11 @@ public Builder clearWorkstationClusters() { return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -1001,50 +876,39 @@ public Builder removeWorkstationClusters(int index) { return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - getWorkstationClustersBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClustersBuilder( + int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClustersOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); - } else { + return workstationClusters_.get(index); } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public java.util.List< - ? extends com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - getWorkstationClustersOrBuilderList() { + public java.util.List + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -1052,62 +916,45 @@ public Builder removeWorkstationClusters(int index) { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - addWorkstationClustersBuilder(int index) { - return getWorkstationClustersFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder( + int index) { + return getWorkstationClustersFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1119,21 +966,19 @@ public Builder removeWorkstationClusters(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1142,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1165,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1205,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1228,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1281,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1374,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1407,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1455,8 +1258,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java index c5080a63d007..1677fecb41ee 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersResponseOrBuilder - extends +public interface ListWorkstationClustersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - java.util.List + java.util.List getWorkstationClustersList(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ int getWorkstationClustersCount(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java index e0cf8790ad68..b1909740866e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,45 +26,38 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -91,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -126,14 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,18 +112,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -162,29 +128,29 @@ 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; } } /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @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 { @@ -193,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,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_); } @@ -228,7 +194,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_); @@ -241,17 +208,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.workstations.v1beta.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,138 +244,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.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(); @@ -418,16 +378,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance(); } @java.lang.Override @@ -441,17 +399,13 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = - new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -468,51 +422,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -552,31 +501,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -586,27 +531,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -615,23 +555,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -639,39 +576,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -681,23 +607,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -705,16 +625,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -722,33 +639,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -760,20 +671,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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; @@ -782,21 +691,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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 { @@ -804,35 +712,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -842,30 +743,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -875,43 +772,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +818,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java similarity index 51% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java index afcc311c6758..f6b3d8492219 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java @@ -1,92 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsRequestOrBuilder - extends +public interface ListWorkstationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java index 7d7f07cd8b78..4d9e49ae3355 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,123 +27,100 @@ private ListWorkstationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - workstationConfigs_; + private java.util.List workstationConfigs_; /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -171,30 +129,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -203,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -250,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +224,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -298,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -320,17 +267,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.workstations.v1beta.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -358,138 +307,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.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(); @@ -508,16 +448,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -531,18 +469,14 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = - new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -559,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -571,51 +504,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -634,10 +562,9 @@ public Builder mergeFrom( workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationConfigsFieldBuilder() - : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -684,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -727,39 +650,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List workstationConfigs_ = + java.util.Collections.emptyList(); private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = - new java.util.ArrayList( - workstationConfigs_); + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -767,14 +679,11 @@ private void ensureWorkstationConfigsIsMutable() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -784,14 +693,11 @@ public int getWorkstationConfigsCount() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -801,14 +707,11 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -825,14 +728,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -846,17 +746,13 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public Builder addWorkstationConfigs( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -870,14 +766,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -894,14 +787,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -915,14 +805,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -936,21 +823,18 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addAllWorkstationConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -958,14 +842,11 @@ public Builder addAllWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -978,14 +859,11 @@ public Builder clearWorkstationConfigs() { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -998,49 +876,39 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigsBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( + int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); - } else { + return workstationConfigs_.get(index); } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1048,62 +916,45 @@ public Builder removeWorkstationConfigs(int index) { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder(int index) { - return getWorkstationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1115,21 +966,19 @@ public Builder removeWorkstationConfigs(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1138,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1161,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1201,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1224,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1277,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1370,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1403,43 +1212,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,8 +1258,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java index 36a29daf493c..061c38b5ea1b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsResponseOrBuilder - extends +public interface ListWorkstationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ int getWorkstationConfigsCount(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java index abe3e0f63f97..01f964d173bb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,45 +26,38 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -91,31 +66,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -126,14 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,18 +112,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -162,29 +128,29 @@ 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; } } /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @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 { @@ -193,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,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_); } @@ -228,7 +194,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_); @@ -241,17 +208,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.workstations.v1beta.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = - (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,136 +244,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationsRequest) com.google.cloud.workstations.v1beta.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsRequest.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,14 +378,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance(); } @@ -438,17 +399,13 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = - new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -465,39 +422,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest)other); } else { super.mergeFrom(other); return this; @@ -505,9 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -547,31 +501,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,27 +531,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -610,23 +555,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -634,39 +576,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -676,23 +607,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,16 +625,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -717,33 +639,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -755,20 +671,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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; @@ -777,21 +691,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @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 { @@ -799,35 +712,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -837,30 +743,26 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -870,13 +772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(); } @@ -885,27 +786,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +821,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java similarity index 51% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java index 5c7811c58f6b..759a8d0cd372 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java @@ -1,92 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsRequestOrBuilder - extends +public interface ListWorkstationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java index 98ce26f821d9..ced98b78b7c3 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListWorkstationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstations_; /** - * - * *
    * The requested workstations.
    * 
@@ -87,8 +65,6 @@ public java.util.List getWorks return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -96,13 +72,11 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -114,8 +88,6 @@ public int getWorkstationsCount() { return workstations_.size(); } /** - * - * *
    * The requested workstations.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** - * - * *
    * The requested workstations.
    * 
@@ -142,19 +112,15 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +129,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -195,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -242,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +224,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -290,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +267,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.workstations.v1beta.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = - (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; - if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationsResponse) com.google.cloud.workstations.v1beta.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsResponse.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 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance(); } @@ -519,18 +469,14 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = - new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -547,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -559,39 +504,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse)other); } else { super.mergeFrom(other); return this; @@ -599,9 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -620,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRe workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationsFieldBuilder() - : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -670,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -713,30 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = - new java.util.ArrayList( - workstations_); + workstations_ = new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; /** - * - * *
      * The requested workstations.
      * 
@@ -751,8 +679,6 @@ public java.util.List getWorks } } /** - * - * *
      * The requested workstations.
      * 
@@ -767,8 +693,6 @@ public int getWorkstationsCount() { } } /** - * - * *
      * The requested workstations.
      * 
@@ -783,8 +707,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** - * - * *
      * The requested workstations.
      * 
@@ -806,8 +728,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -826,8 +746,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -848,8 +766,6 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -871,8 +787,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -891,8 +805,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -911,8 +823,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -923,7 +833,8 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -931,8 +842,6 @@ public Builder addAllWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -950,8 +859,6 @@ public Builder clearWorkstations() { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -969,8 +876,6 @@ public Builder removeWorkstations(int index) { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -982,8 +887,6 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstations.
      * 
@@ -993,22 +896,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); - } else { + return workstations_.get(index); } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -1016,8 +916,6 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** - * - * *
      * The requested workstations.
      * 
@@ -1025,12 +923,10 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
@@ -1039,35 +935,30 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder() - .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workstations_ = null; } return workstationsBuilder_; @@ -1075,21 +966,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -1098,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1121,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1161,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1184,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1237,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1330,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1363,13 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(); } @@ -1378,27 +1226,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1413,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java index 771a541e8af9..deef245c0fe1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsResponseOrBuilder - extends +public interface ListWorkstationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List getWorkstationsList(); + java.util.List + getWorkstationsList(); /** - * - * *
    * The requested workstations.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkstationsResponseOrBuilder */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** - * - * *
    * The requested workstations.
    * 
@@ -54,102 +33,84 @@ public interface ListWorkstationsResponseOrBuilder */ int getWorkstationsCount(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java similarity index 70% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java index 38df5b8e41b5..eb59b29cc9cb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, - com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time that 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 @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time that 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 @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time that 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() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,15 +271,12 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -341,18 +285,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -361,29 +301,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -392,7 +332,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -436,10 +376,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -451,7 +393,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -464,27 +407,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.OperationMetadata other = - (com.google.cloud.workstations.v1beta.OperationMetadata) obj; + com.google.cloud.workstations.v1beta.OperationMetadata other = (com.google.cloud.workstations.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -511,7 +460,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -520,136 +470,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.OperationMetadata) com.google.cloud.workstations.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, - com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.OperationMetadata.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(); @@ -673,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -694,11 +637,8 @@ public com.google.cloud.workstations.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1beta.OperationMetadata result = - new com.google.cloud.workstations.v1beta.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.OperationMetadata result = new com.google.cloud.workstations.v1beta.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -706,10 +646,14 @@ public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -732,39 +676,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata) other); + return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -772,8 +715,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -829,55 +771,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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) { @@ -887,63 +825,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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. Time that 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. Time that 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. Time that 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) { @@ -959,17 +877,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that 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(); } else { @@ -980,21 +895,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time that 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 (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1007,15 +918,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that 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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1028,15 +935,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time that 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() { bitField0_ |= 0x00000001; @@ -1044,48 +947,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time that 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. Time that 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_; @@ -1093,35 +984,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1132,14 +1012,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1155,16 +1032,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1175,20 +1050,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1201,14 +1073,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1221,14 +1090,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1236,44 +1102,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.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> 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_; @@ -1281,20 +1139,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1303,21 +1159,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1325,35 +1180,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1363,21 +1211,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1387,20 +1231,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1409,21 +1251,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1431,35 +1272,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1469,21 +1303,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1493,20 +1323,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1515,21 +1343,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1537,35 +1364,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1575,21 +1395,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1597,17 +1413,14 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1615,35 +1428,29 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1655,20 +1462,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1677,21 +1482,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1699,35 +1503,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1737,30 +1534,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1770,12 +1563,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.OperationMetadata) private static final com.google.cloud.workstations.v1beta.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.OperationMetadata(); } @@ -1784,27 +1577,27 @@ public static com.google.cloud.workstations.v1beta.OperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1819,4 +1612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java similarity index 74% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java index fd274b56bbc0..396fa0fb8a60 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java @@ -1,215 +1,154 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Time that 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. Time that 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. Time that 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(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java index afd26e3d3ce7..5e144dc03852 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StartWorkstationRequest) StartWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,45 +26,38 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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,31 +66,29 @@ 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. Name of the workstation to start.
    * 
* - * - * 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 { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -143,19 +113,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -164,30 +130,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -196,7 +162,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -231,7 +197,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -244,17 +211,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.workstations.v1beta.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StartWorkstationRequest other = - (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StartWorkstationRequest other = (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,7 +238,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -278,136 +248,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.StartWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.StartWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.StartWorkstationRequest) com.google.cloud.workstations.v1beta.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StartWorkstationRequest.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(); @@ -419,14 +382,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.StartWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance(); } @@ -441,17 +403,13 @@ public com.google.cloud.workstations.v1beta.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StartWorkstationRequest result = - new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.StartWorkstationRequest result = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -468,39 +426,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -508,9 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StartWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -550,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -584,27 +535,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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; @@ -613,23 +559,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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 { @@ -637,39 +580,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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() { @@ -679,23 +611,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -703,17 +629,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -721,35 +644,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -761,21 +678,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -784,22 +699,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -807,37 +721,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -847,31 +754,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -881,13 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(); } @@ -896,27 +798,27 @@ public static com.google.cloud.workstations.v1beta.StartWorkstationRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -931,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java index fc45a5e2b33c..24ba8fc89878 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java @@ -1,95 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StartWorkstationRequestOrBuilder - extends +public interface StartWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java index e9d74a60b1cf..fdfed57ef15b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StopWorkstationRequest) StopWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,45 +26,38 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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,31 +66,29 @@ 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. Name of the workstation to stop.
    * 
* - * - * 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 { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -143,19 +113,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -164,30 +130,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -196,7 +162,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -231,7 +197,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -244,17 +211,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.workstations.v1beta.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StopWorkstationRequest other = - (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StopWorkstationRequest other = (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,7 +238,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -278,136 +248,129 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.StopWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.StopWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.StopWorkstationRequest) com.google.cloud.workstations.v1beta.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StopWorkstationRequest.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(); @@ -419,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -440,11 +403,8 @@ public com.google.cloud.workstations.v1beta.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StopWorkstationRequest result = - new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.StopWorkstationRequest result = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -466,39 +426,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.StopWorkstationR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -506,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -547,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,27 +535,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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; @@ -610,23 +559,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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 { @@ -634,39 +580,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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() { @@ -676,23 +611,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -700,17 +629,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -718,35 +644,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -758,21 +678,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -781,22 +699,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -804,37 +721,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -844,31 +754,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -878,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) private static final com.google.cloud.workstations.v1beta.StopWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(); } @@ -892,27 +798,27 @@ public static com.google.cloud.workstations.v1beta.StopWorkstationRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -927,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java index fc4d20b5f42b..13f7e57743e8 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java @@ -1,95 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StopWorkstationRequestOrBuilder - extends +public interface StopWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java index ae1c81cb2b79..ce470b2e8085 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java @@ -1,84 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationClusterRequest() {} + private UpdateWorkstationClusterRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -86,56 +62,38 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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 @@ -143,16 +101,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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 @@ -160,15 +114,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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() { @@ -178,15 +129,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -197,15 +145,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set, and the workstation cluster is not found, a new workstation
    * cluster will be created. In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -214,7 +159,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +170,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -249,16 +194,20 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -268,24 +217,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.workstations.v1beta.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,147 +258,140 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.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(); @@ -467,16 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance(); } @java.lang.Override @@ -490,26 +433,23 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = - workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -523,51 +463,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -606,38 +541,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -647,66 +580,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -720,15 +632,11 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -742,23 +650,17 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstationCluster_ != null - && workstationCluster_ - != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -771,15 +673,11 @@ public Builder mergeWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -792,66 +690,48 @@ public Builder clearWorkstationCluster() { return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), getParentForChildren(), isClean()); + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -859,58 +739,42 @@ public Builder clearWorkstationCluster() { 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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) { @@ -926,17 +790,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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(); } else { @@ -947,21 +809,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -974,15 +833,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -995,15 +851,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1011,64 +864,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -1076,35 +916,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1114,17 +948,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -1132,35 +963,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1169,9 +994,9 @@ public Builder clearAllowMissing() { 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); } @@ -1181,43 +1006,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1229,8 +1052,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java index 7aa9c7de9091..8831e9d1fb0d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,134 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationClusterRequestOrBuilder - extends +public interface UpdateWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, and the workstation cluster is not found, a new workstation
    * cluster will be created. In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java index d2cbed064bef..ecf1f7d00f28 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java @@ -1,84 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationConfigRequest() {} + private UpdateWorkstationConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -86,55 +62,37 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -142,15 +100,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -158,14 +112,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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() { @@ -175,15 +126,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -194,15 +142,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -211,7 +156,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +167,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -246,16 +191,20 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -265,24 +214,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.workstations.v1beta.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,147 +255,140 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.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(); @@ -464,16 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -487,26 +430,23 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = - workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -520,51 +460,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -603,38 +538,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -644,66 +577,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,15 +629,11 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -739,23 +647,17 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstationConfig_ != null - && workstationConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -768,15 +670,11 @@ public Builder mergeWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -789,66 +687,48 @@ public Builder clearWorkstationConfig() { return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), getParentForChildren(), isClean()); + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -856,55 +736,39 @@ public Builder clearWorkstationConfig() { 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. Mask specifying which fields in the config should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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) { @@ -920,16 +784,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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(); } else { @@ -940,20 +802,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -966,14 +825,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -986,14 +842,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -1001,62 +854,49 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -1064,35 +904,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1102,17 +936,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -1120,35 +951,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1157,9 +982,9 @@ public Builder clearAllowMissing() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1169,43 +994,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,8 +1040,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java index 05d06ef3b1e0..d89cf784cebe 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,131 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationConfigRequestOrBuilder - extends +public interface UpdateWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java similarity index 64% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java index 9de4b9fb3adc..7e09bf6858a1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java @@ -1,83 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationRequest() {} + private UpdateWorkstationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ @java.lang.Override @@ -85,54 +62,37 @@ public boolean hasWorkstation() { return workstation_ != null; } /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -140,15 +100,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -156,14 +112,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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() { @@ -173,15 +126,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -192,15 +142,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -209,7 +156,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +167,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -244,16 +191,20 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,24 +214,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.workstations.v1beta.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = - (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,145 +255,140 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.UpdateWorkstationRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.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(); @@ -460,14 +409,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance(); } @@ -482,24 +430,23 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = - new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = - workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -513,39 +460,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -553,9 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -594,37 +538,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -634,63 +577,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } else { return workstationBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -706,15 +629,11 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -728,22 +647,17 @@ public Builder setWorkstation( return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstation_ != null - && workstation_ - != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -756,15 +670,11 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -777,15 +687,11 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -793,48 +699,36 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), getParentForChildren(), isClean()); + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); workstation_ = null; } return workstationBuilder_; @@ -842,55 +736,39 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationO 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. Mask specifying which fields in the config should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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) { @@ -906,16 +784,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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(); } else { @@ -926,20 +802,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -952,14 +825,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -972,14 +842,11 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -987,62 +854,49 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -1050,35 +904,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1088,17 +936,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -1106,35 +951,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1143,9 +982,9 @@ public Builder clearAllowMissing() { 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); } @@ -1155,13 +994,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(); } @@ -1170,27 +1008,27 @@ public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1205,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java index 61f355efa318..922a74b232b0 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java @@ -1,131 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationRequestOrBuilder - extends +public interface UpdateWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** - * - * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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(); /** - * - * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java index ea0e65c70655..f512a0b8293b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ -public final class Workstation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Workstation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.Workstation) WorkstationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Workstation() { name_ = ""; displayName_ = ""; @@ -48,56 +30,53 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Workstation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_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 5: return internalGetAnnotations(); case 13: 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.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, - com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); } /** - * - * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1beta.Workstation.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Do not use.
      * 
@@ -106,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -117,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_STARTING(1),
     /**
-     *
-     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -127,8 +102,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_RUNNING(2), /** - * - * *
      * The workstation is being stopped.
      * 
@@ -137,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_STOPPING(3), /** - * - * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -151,8 +122,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -161,8 +130,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -172,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -182,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_RUNNING_VALUE = 2; /** - * - * *
      * The workstation is being stopped.
      * 
@@ -192,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_STOPPING_VALUE = 3; /** - * - * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -203,6 +164,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,53 +189,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return STATE_STARTING;
-        case 2:
-          return STATE_RUNNING;
-        case 3:
-          return STATE_STOPPING;
-        case 4:
-          return STATE_STOPPED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return STATE_STARTING;
+        case 2: return STATE_RUNNING;
+        case 3: return STATE_STOPPING;
+        case 4: return STATE_STOPPED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    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.workstations.v1beta.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -291,18 +251,14 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -311,29 +267,29 @@ 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; } } /** - * - * *
    * Full name of this resource.
    * 
* * 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 { @@ -342,18 +298,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -362,29 +314,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; } } /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @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 { @@ -393,18 +345,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -413,29 +361,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -446,15 +394,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -463,35 +408,32 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -499,21 +441,20 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -525,8 +466,6 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -534,19 +473,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Client-specified annotations.
    * 
@@ -554,11 +491,11 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -566,34 +503,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 13; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -602,21 +537,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 13;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -629,8 +563,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -639,19 +571,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -660,11 +590,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13;
    */
   @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();
     }
@@ -674,15 +604,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -690,15 +616,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -706,14 +628,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -723,15 +642,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -739,15 +654,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -755,14 +666,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -772,15 +680,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -788,15 +692,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -804,14 +704,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -819,19 +716,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The etag. */ @java.lang.Override @@ -840,30 +733,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -874,51 +767,33 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = - com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null - ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { + com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -928,7 +803,6 @@ public com.google.cloud.workstations.v1beta.Workstation.State getState() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -937,15 +811,14 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -955,15 +828,16 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -972,7 +846,6 @@ public com.google.protobuf.ByteString getHostBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -984,7 +857,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_); } @@ -997,8 +871,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -1011,15 +889,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - if (state_ - != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 13); getUnknownFields().writeTo(output); } @@ -1039,46 +920,50 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - if (state_ - != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_); } - 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(13, 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(13, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1088,35 +973,45 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1beta.Workstation)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.Workstation other = - (com.google.cloud.workstations.v1beta.Workstation) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.Workstation other = (com.google.cloud.workstations.v1beta.Workstation) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (state_ != other.state_) return false; - if (!getHost().equals(other.getHost())) return false; + if (!getHost() + .equals(other.getHost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1135,7 +1030,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -1167,160 +1063,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.Workstation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.Workstation) com.google.cloud.workstations.v1beta.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: 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 5: return internalGetMutableAnnotations(); case 13: 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.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, - com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.Workstation.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(); @@ -1353,9 +1245,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @java.lang.Override @@ -1374,11 +1266,8 @@ public com.google.cloud.workstations.v1beta.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation buildPartial() { - com.google.cloud.workstations.v1beta.Workstation result = - new com.google.cloud.workstations.v1beta.Workstation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.Workstation result = new com.google.cloud.workstations.v1beta.Workstation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1406,13 +1295,19 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.etag_ = etag_; @@ -1429,39 +1324,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1beta.Workstation) other); + return mergeFrom((com.google.cloud.workstations.v1beta.Workstation)other); } else { super.mergeFrom(other); return this; @@ -1469,8 +1363,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) { - if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1489,9 +1382,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1541,97 +1436,86 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 80: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 80 - case 90: - { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 90 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 80 + case 90: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 106: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + 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) { @@ -1641,25 +1525,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Full name of this resource.
      * 
* * 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; @@ -1668,21 +1549,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this resource.
      * 
* * 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 { @@ -1690,35 +1570,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1728,21 +1601,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1752,20 +1621,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @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; @@ -1774,21 +1641,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @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 { @@ -1796,35 +1662,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1834,21 +1693,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1858,20 +1713,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1880,21 +1733,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1902,35 +1754,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -1940,21 +1785,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -1962,17 +1803,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1980,35 +1818,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -2018,8 +1850,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -2028,12 +1860,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -2042,13 +1873,10 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -2056,21 +1884,20 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -2082,8 +1909,6 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -2091,19 +1916,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Client-specified annotations.
      * 
@@ -2111,92 +1934,92 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -2205,13 +2028,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2220,21 +2040,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 13;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2247,8 +2066,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2257,19 +2074,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2278,25 +2093,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2304,22 +2117,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2327,20 +2141,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 13;
      */
-    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");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    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"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2348,66 +2159,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 13;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2423,17 +2217,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -2444,21 +2235,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2471,15 +2258,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2492,15 +2275,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2508,48 +2287,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -2557,58 +2324,39 @@ 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_; /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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(); } } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2624,17 +2372,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2645,21 +2390,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2672,15 +2413,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2693,15 +2430,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2709,48 +2442,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -2758,58 +2479,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2825,17 +2527,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2846,21 +2545,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2873,15 +2568,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2894,15 +2585,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -2910,48 +2597,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -2959,21 +2634,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2982,22 +2655,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3005,37 +2677,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3045,22 +2710,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -3070,33 +2731,22 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3107,37 +2757,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = - com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null - ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED - : result; + com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3151,16 +2788,11 @@ public Builder setState(com.google.cloud.workstations.v1beta.Workstation.State v return this; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3172,8 +2804,6 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3183,13 +2813,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -3198,8 +2828,6 @@ public java.lang.String getHost() { } } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3209,14 +2837,15 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -3224,8 +2853,6 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3235,22 +2862,18 @@ public com.google.protobuf.ByteString getHostBytes() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3260,7 +2883,6 @@ public Builder setHost(java.lang.String value) {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHost() { @@ -3270,8 +2892,6 @@ public Builder clearHost() { return this; } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3281,23 +2901,21 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000800; 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); } @@ -3307,12 +2925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.Workstation) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.Workstation) private static final com.google.cloud.workstations.v1beta.Workstation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.Workstation(); } @@ -3321,27 +2939,27 @@ public static com.google.cloud.workstations.v1beta.Workstation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workstation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3356,4 +2974,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.Workstation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java index c30e9765e274..74bfcf96d534 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * A grouping of workstation configurations and the associated workstations
  *  in that region.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
  */
-public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkstationCluster extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster)
     WorkstationClusterOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -50,64 +32,58 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_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 5:
         return internalGetAnnotations();
       case 15:
         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.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationCluster.class,
-            com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder
-      extends
+  public interface PrivateClusterConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -117,13 +93,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -133,14 +106,12 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString getClusterHostnameBytes(); + com.google.protobuf.ByteString + getClusterHostnameBytes(); /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -150,13 +121,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -166,14 +134,12 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString + getServiceAttachmentUriBytes(); /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -181,13 +147,11 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4; - * * @return A list containing the allowedProjects. */ - java.util.List getAllowedProjectsList(); + java.util.List + getAllowedProjectsList(); /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -195,13 +159,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4; - * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -209,14 +170,11 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -224,31 +182,28 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString + getAllowedProjectsBytes(int index); } /** - * - * *
    * Configuration options for private clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; @@ -257,42 +212,37 @@ private PrivateClusterConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** - * - * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -301,12 +251,9 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -316,7 +263,6 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ @java.lang.Override @@ -325,15 +271,14 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -343,15 +288,16 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterHostnameBytes() { + public com.google.protobuf.ByteString + getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -360,12 +306,9 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -375,7 +318,6 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -384,15 +326,14 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -402,15 +343,16 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -419,12 +361,9 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowedProjects_; /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -432,15 +371,13 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() {
      * 
* * repeated string allowed_projects = 4; - * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { return allowedProjects_; } /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -448,15 +385,12 @@ public com.google.protobuf.ProtocolStringList getAllowedProjectsList() {
      * 
* * repeated string allowed_projects = 4; - * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -464,7 +398,6 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -472,8 +405,6 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** - * - * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -481,16 +412,15 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -502,7 +432,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -525,7 +456,8 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -549,20 +481,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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = - (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname().equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() + != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname() + .equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri() + .equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList() + .equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -575,7 +508,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -589,101 +523,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -693,44 +614,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration options for private clusters.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.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(); @@ -744,22 +660,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -767,20 +680,15 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = - new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { if (((bitField0_ & 0x00000008) != 0)) { allowedProjects_ = allowedProjects_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); @@ -788,8 +696,7 @@ private void buildPartialRepeatedFields( result.allowedProjects_ = allowedProjects_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -806,55 +713,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -904,38 +802,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + 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) { @@ -945,19 +838,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enablePrivateEndpoint_; + private boolean enablePrivateEndpoint_ ; /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -965,33 +854,27 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ public Builder setEnablePrivateEndpoint(boolean value) { - + enablePrivateEndpoint_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -1003,8 +886,6 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1014,13 +895,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -1029,8 +910,6 @@ public java.lang.String getClusterHostname() { } } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1040,14 +919,15 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString getClusterHostnameBytes() { + public com.google.protobuf.ByteString + getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -1055,8 +935,6 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() { } } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1066,22 +944,18 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1091,7 +965,6 @@ public Builder setClusterHostname(java.lang.String value) {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -1101,8 +974,6 @@ public Builder clearClusterHostname() { return this; } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1112,14 +983,12 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -1129,8 +998,6 @@ public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAttachmentUri_ = ""; /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1139,15 +1006,14 @@ public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1156,8 +1022,6 @@ public java.lang.String getServiceAttachmentUri() { } } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1166,16 +1030,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1183,8 +1047,6 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { } } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1193,24 +1055,19 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAttachmentUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1219,9 +1076,7 @@ public Builder setServiceAttachmentUri(java.lang.String value) {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1231,8 +1086,6 @@ public Builder clearServiceAttachmentUri() { return this; } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1241,16 +1094,13 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAttachmentUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1258,18 +1108,14 @@ public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value return this; } - private com.google.protobuf.LazyStringList allowedProjects_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedProjectsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); bitField0_ |= 0x00000008; - } + } } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1277,15 +1123,13 @@ private void ensureAllowedProjectsIsMutable() {
        * 
* * repeated string allowed_projects = 4; - * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { return allowedProjects_.getUnmodifiableView(); } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1293,15 +1137,12 @@ public com.google.protobuf.ProtocolStringList getAllowedProjectsList() {
        * 
* * repeated string allowed_projects = 4; - * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1309,7 +1150,6 @@ public int getAllowedProjectsCount() {
        * 
* * repeated string allowed_projects = 4; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1317,8 +1157,6 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1326,16 +1164,14 @@ public java.lang.String getAllowedProjects(int index) {
        * 
* * repeated string allowed_projects = 4; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1343,23 +1179,19 @@ public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) {
        * 
* * repeated string allowed_projects = 4; - * * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAllowedProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); onChanged(); return this; } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1367,22 +1199,18 @@ public Builder setAllowedProjects(int index, java.lang.String value) {
        * 
* * repeated string allowed_projects = 4; - * * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); onChanged(); return this; } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1390,19 +1218,18 @@ public Builder addAllowedProjects(java.lang.String value) {
        * 
* * repeated string allowed_projects = 4; - * * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects(java.lang.Iterable values) { + public Builder addAllAllowedProjects( + java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedProjects_); onChanged(); return this; } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1410,7 +1237,6 @@ public Builder addAllAllowedProjects(java.lang.Iterable values
        * 
* * repeated string allowed_projects = 4; - * * @return This builder for chaining. */ public Builder clearAllowedProjects() { @@ -1420,8 +1246,6 @@ public Builder clearAllowedProjects() { return this; } /** - * - * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1429,21 +1253,18 @@ public Builder clearAllowedProjects() {
        * 
* * repeated string allowed_projects = 4; - * * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1456,46 +1277,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationCluster - .PrivateClusterConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1507,25 +1323,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1534,29 +1346,29 @@ 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; } } /** - * - * *
    * Full name of this resource.
    * 
* * 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 { @@ -1565,18 +1377,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -1585,29 +1393,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; } } /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @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 { @@ -1616,18 +1424,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -1636,29 +1440,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1669,15 +1473,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1686,35 +1487,32 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -1722,21 +1520,20 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -1748,8 +1545,6 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -1757,19 +1552,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Client-specified annotations.
    * 
@@ -1777,11 +1570,11 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1789,34 +1582,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 15; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1825,21 +1616,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 15;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1852,8 +1642,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1862,19 +1650,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1883,11 +1669,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15;
    */
   @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();
     }
@@ -1897,15 +1683,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1913,15 +1695,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1929,14 +1707,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1946,15 +1721,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1962,15 +1733,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1978,14 +1745,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1995,15 +1759,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -2011,15 +1771,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -2027,14 +1783,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -2042,19 +1795,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The etag. */ @java.lang.Override @@ -2063,30 +1812,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -2095,19 +1844,15 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int NETWORK_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ @java.lang.Override @@ -2116,30 +1861,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -2148,12 +1893,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -2161,7 +1903,6 @@ public com.google.protobuf.ByteString getNetworkBytes() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ @java.lang.Override @@ -2170,15 +1911,14 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -2186,15 +1926,16 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -2203,19 +1944,13 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; /** - * - * *
    * Configuration for private cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -2223,51 +1958,32 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** - * - * *
    * Configuration for private cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig() { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } /** - * - * *
    * Configuration for private cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** - * - * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -2275,7 +1991,6 @@ public boolean hasPrivateClusterConfig() {
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -2284,82 +1999,67 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2371,7 +2071,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_); } @@ -2384,8 +2085,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2413,8 +2118,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 15); getUnknownFields().writeTo(output); } @@ -2434,26 +2143,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2465,24 +2178,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); - } - 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(15, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, conditions_.get(i)); + } + 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(15, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2492,41 +2207,55 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster other = - (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationCluster other = (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig() + .equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() != other.getDegraded()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2545,7 +2274,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2577,7 +2307,8 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2588,104 +2319,96 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.WorkstationCluster prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 grouping of workstation configurations and the associated workstations
    *  in that region.
@@ -2693,56 +2416,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationCluster)
       com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           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 5:
           return internalGetMutableAnnotations();
         case 15:
           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.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationCluster.class,
-              com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.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();
@@ -2788,9 +2514,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2809,18 +2535,14 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationCluster result =
-          new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
+      com.google.cloud.workstations.v1beta.WorkstationCluster result = new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workstations.v1beta.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00004000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2855,13 +2577,19 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2873,10 +2601,9 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.subnetwork_ = subnetwork_;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.privateClusterConfig_ =
-            privateClusterConfigBuilder_ == null
-                ? privateClusterConfig_
-                : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
+            ? privateClusterConfig_
+            : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
         result.degraded_ = degraded_;
@@ -2887,39 +2614,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.workstations.v1beta.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster) other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2927,8 +2653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -2947,9 +2672,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -2999,10 +2726,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00004000);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -3034,122 +2760,111 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                network_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                subnetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(
-                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 98
-            case 104:
-              {
-                degraded_ = input.readBool();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 104
-            case 114:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 122:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 122
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              network_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              subnetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getPrivateClusterConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 98
+            case 104: {
+              degraded_ = input.readBool();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 104
+            case 114: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 122: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              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) {
@@ -3159,25 +2874,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Full name of this resource.
      * 
* * 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; @@ -3186,21 +2898,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this resource.
      * 
* * 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 { @@ -3208,35 +2919,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3246,21 +2950,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3270,20 +2970,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @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; @@ -3292,21 +2990,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @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 { @@ -3314,35 +3011,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3352,21 +3042,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3376,20 +3062,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3398,21 +3082,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -3420,35 +3103,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -3458,21 +3134,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3480,17 +3152,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -3498,35 +3167,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3536,8 +3199,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3546,12 +3209,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3560,13 +3222,10 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -3574,21 +3233,20 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -3600,8 +3258,6 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -3609,19 +3265,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Client-specified annotations.
      * 
@@ -3629,92 +3283,92 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -3723,13 +3377,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3738,21 +3389,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 15;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3765,8 +3415,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3775,19 +3423,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3796,25 +3442,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3822,22 +3466,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3845,20 +3490,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 15;
      */
-    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");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    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"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3866,66 +3508,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 15;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3941,17 +3566,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -3962,21 +3584,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3989,15 +3607,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4010,15 +3624,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -4026,48 +3636,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -4075,58 +3673,39 @@ 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_; /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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(); } } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4142,17 +3721,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4163,21 +3739,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4190,15 +3762,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -4211,15 +3779,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -4227,48 +3791,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -4276,58 +3828,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -4343,17 +3876,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4364,21 +3894,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4391,15 +3917,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4412,15 +3934,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4428,48 +3946,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4477,21 +3983,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4500,22 +4004,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -4523,37 +4026,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4563,22 +4059,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4588,21 +4080,19 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object network_ = ""; /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4611,22 +4101,21 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -4634,37 +4123,30 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4674,22 +4156,18 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4699,8 +4177,6 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnetwork_ = ""; /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4708,13 +4184,13 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4723,8 +4199,6 @@ public java.lang.String getSubnetwork() { } } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4732,14 +4206,15 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4747,8 +4222,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4756,22 +4229,18 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4779,7 +4248,6 @@ public Builder setSubnetwork(java.lang.String value) {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4789,8 +4257,6 @@ public Builder clearSubnetwork() { return this; } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4798,14 +4264,12 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4813,66 +4277,43 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> - privateClusterConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ - public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4886,19 +4327,14 @@ public Builder setPrivateClusterConfig( return this; } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -4909,24 +4345,17 @@ public Builder setPrivateClusterConfig( return this; } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ - public Builder mergePrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && privateClusterConfig_ != null - && privateClusterConfig_ - != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + privateClusterConfig_ != null && + privateClusterConfig_ != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -4939,15 +4368,11 @@ public Builder mergePrivateClusterConfig( return this; } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4960,78 +4385,55 @@ public Builder clearPrivateClusterConfig() { return this; } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { bitField0_ |= 0x00001000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + return privateClusterConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } } /** - * - * *
      * Configuration for private cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .Builder, - com.google.cloud.workstations.v1beta.WorkstationCluster - .PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), getParentForChildren(), isClean()); + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_; + private boolean degraded_ ; /** - * - * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -5039,7 +4441,6 @@ public Builder clearPrivateClusterConfig() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -5047,8 +4448,6 @@ public boolean getDegraded() { return degraded_; } /** - * - * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -5056,20 +4455,17 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The degraded to set. * @return This builder for chaining. */ public Builder setDegraded(boolean value) { - + degraded_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -5077,7 +4473,6 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -5087,29 +4482,24 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = java.util.Collections.emptyList(); - + private java.util.List conditions_ = + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00004000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -5119,15 +4509,11 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -5137,15 +4523,11 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -5155,17 +4537,14 @@ public com.google.rpc.Status getConditions(int index) { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status value) { + public Builder setConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5179,17 +4558,14 @@ public Builder setConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -5200,15 +4576,11 @@ public Builder setConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -5224,17 +4596,14 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status value) { + public Builder addConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5248,17 +4617,14 @@ public Builder addConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -5269,17 +4635,14 @@ public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -5290,20 +4653,18 @@ public Builder addConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllConditions(java.lang.Iterable values) { + public Builder addAllConditions( + java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -5311,15 +4672,11 @@ public Builder addAllConditions(java.lang.Iterable * Output only. Status conditions describing the current resource state. *
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -5332,15 +4689,11 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -5353,49 +4706,39 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder getConditionsBuilder(int index) { + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -5403,66 +4746,56 @@ public java.util.List getConditionsOrB } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - 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> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - conditions_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5472,12 +4805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster) private static final com.google.cloud.workstations.v1beta.WorkstationCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster(); } @@ -5486,27 +4819,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationCluster getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5521,4 +4854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java index 9fa83ac75c4a..5c158b4a5a8d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java @@ -1,120 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationClusterOrBuilder - extends +public interface WorkstationClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Client-specified annotations.
    * 
@@ -123,31 +87,30 @@ public interface WorkstationClusterOrBuilder */ int getAnnotationsCount(); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Client-specified annotations.
    * 
@@ -155,24 +118,21 @@ public interface WorkstationClusterOrBuilder * map<string, string> annotations = 5; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -182,8 +142,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -191,13 +149,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 15;
    */
-  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();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -205,10 +165,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 15;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -217,13 +176,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 15;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -231,179 +188,135 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -411,13 +324,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -425,57 +335,39 @@ java.lang.String getLabelsOrDefault(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString getSubnetworkBytes(); + com.google.protobuf.ByteString + getSubnetworkBytes(); /** - * - * *
    * Configuration for private cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** - * - * *
    * Configuration for private cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); /** - * - * *
    * Configuration for private cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); /** - * - * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -483,64 +375,51 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ boolean getDegraded(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getConditions(int index); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java index 79c15b7c3dfb..0ce65b112686 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * A set of configuration options describing how a workstation will be run.
  * Workstation configurations are intended to be shared across multiple
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
  */
-public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkstationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig)
     WorkstationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -50,400 +32,317 @@ private WorkstationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WorkstationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_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 5:
         return internalGetAnnotations();
       case 18:
         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.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationConfig.class,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder
-      extends
+  public interface HostOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance(); /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** - * - * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - public static final class Host extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Host extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Host() {} + private Host() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Host(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder - extends + public interface GceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
-       * Email address of the service account that will be used on VM instances
-       * used to support this config. This service account must have permission
-       * to pull the specified container image. If not set, VMs will run without
-       * a service account, in which case the image must be publicly accessible.
+       * Email address of the service account used on VM instances
+       * used to support this configuration. If not set, VMs run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image; otherwise, the image
+       * must be publicly accessible.
        * 
* * string service_account = 2; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
-       * Email address of the service account that will be used on VM instances
-       * used to support this config. This service account must have permission
-       * to pull the specified container image. If not set, VMs will run without
-       * a service account, in which case the image must be publicly accessible.
+       * Email address of the service account used on VM instances
+       * used to support this configuration. If not set, VMs run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image; otherwise, the image
+       * must be publicly accessible.
        * 
* * string service_account = 2; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); /** - * - * *
        * Number of instances to pool for faster workstation starup.
        * 
* * int32 pool_size = 5; - * * @return The poolSize. */ int getPoolSize(); /** - * - * *
        * Whether instances have no public IP address.
        * 
* * bool disable_public_ip_addresses = 6; - * * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); /** - * - * *
        * Size of the boot disk in GB.
        * 
* * int32 boot_disk_size_gb = 9; - * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); } /** - * - * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceInstance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceInstance() { machineType_ = ""; serviceAccount_ = ""; @@ -452,138 +351,115 @@ private GceInstance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); } - public interface GceShieldedInstanceConfigOrBuilder - extends + public interface GceShieldedInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1; - * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** - * - * *
          * Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2; - * * @return The enableVtpm. */ boolean getEnableVtpm(); /** - * - * *
          * Whether the instance has integrity monitoring enabled.
          * 
* * bool enable_integrity_monitoring = 3; - * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceShieldedInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GceShieldedInstanceConfig() {} + private GceShieldedInstanceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** - * - * *
          * Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -594,14 +470,11 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** - * - * *
          * Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2; - * * @return The enableVtpm. */ @java.lang.Override @@ -612,14 +485,11 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** - * - * *
          * Whether the instance has integrity monitoring enabled.
          * 
* * bool enable_integrity_monitoring = 3; - * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -628,7 +498,6 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -641,7 +510,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -661,15 +530,16 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, enableIntegrityMonitoring_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -679,24 +549,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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) - obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; - if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() + != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() + != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() + != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -709,131 +574,101 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -843,46 +678,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.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(); @@ -894,26 +722,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -921,25 +742,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -956,60 +766,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -1045,31 +841,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { @@ -1079,19 +871,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableSecureBoot_; + private boolean enableSecureBoot_ ; /** - * - * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -1099,33 +887,27 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** - * - * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; - * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; - * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -1135,16 +917,13 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_; + private boolean enableVtpm_ ; /** - * - * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; - * * @return The enableVtpm. */ @java.lang.Override @@ -1152,33 +931,27 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** - * - * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; - * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; - * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -1188,16 +961,13 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_; + private boolean enableIntegrityMonitoring_ ; /** - * - * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; - * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -1205,33 +975,27 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** - * - * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; - * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; - * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1240,7 +1004,6 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1253,48 +1016,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1306,94 +1062,78 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GceConfidentialInstanceConfigOrBuilder - extends + public interface GceConfidentialInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Whether the instance has confidential compute enabled.
          * 
* * bool enable_confidential_compute = 1; - * * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceConfidentialInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GceConfidentialInstanceConfig() {} + private GceConfidentialInstanceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** - * - * *
          * Whether the instance has confidential compute enabled.
          * 
* * bool enable_confidential_compute = 1; - * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1402,7 +1142,6 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1415,7 +1154,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1429,9 +1168,8 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, enableConfidentialCompute_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1441,22 +1179,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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) - obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; - if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() + != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1469,127 +1200,95 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1599,46 +1298,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.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(); @@ -1648,26 +1340,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1675,25 +1360,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1704,60 +1378,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -1787,19 +1447,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + 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) { @@ -1809,19 +1467,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableConfidentialCompute_; + private boolean enableConfidentialCompute_ ; /** - * - * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; - * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1829,33 +1483,27 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** - * - * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; - * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ public Builder setEnableConfidentialCompute(boolean value) { - + enableConfidentialCompute_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; - * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -1864,7 +1512,6 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1877,48 +1524,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1930,26 +1570,21 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** - * - * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return The machineType. */ @java.lang.Override @@ -1958,29 +1593,29 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -1989,21 +1624,18 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** - * - * *
-       * Email address of the service account that will be used on VM instances
-       * used to support this config. This service account must have permission
-       * to pull the specified container image. If not set, VMs will run without
-       * a service account, in which case the image must be publicly accessible.
+       * Email address of the service account used on VM instances
+       * used to support this configuration. If not set, VMs run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image; otherwise, the image
+       * must be publicly accessible.
        * 
* * string service_account = 2; - * * @return The serviceAccount. */ @java.lang.Override @@ -2012,32 +1644,33 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
-       * Email address of the service account that will be used on VM instances
-       * used to support this config. This service account must have permission
-       * to pull the specified container image. If not set, VMs will run without
-       * a service account, in which case the image must be publicly accessible.
+       * Email address of the service account used on VM instances
+       * used to support this configuration. If not set, VMs run with a
+       * Google-managed service account. This service account must have
+       * permission to pull the specified container image; otherwise, the image
+       * must be publicly accessible.
        * 
* * string service_account = 2; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2046,49 +1679,40 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int TAGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2096,33 +1720,28 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** - * - * *
        * Number of instances to pool for faster workstation starup.
        * 
* * int32 pool_size = 5; - * * @return The poolSize. */ @java.lang.Override @@ -2133,14 +1752,11 @@ public int getPoolSize() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** - * - * *
        * Whether instances have no public IP address.
        * 
* * bool disable_public_ip_addresses = 6; - * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -2149,20 +1765,13 @@ public boolean getDisablePublicIpAddresses() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -2170,63 +1779,37 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -2234,59 +1817,37 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** - * - * *
        * Size of the boot disk in GB.
        * 
* * int32 boot_disk_size_gb = 9; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -2295,7 +1856,6 @@ public int getBootDiskSizeGb() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2307,7 +1867,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -2356,24 +1917,24 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, disablePublicIpAddresses_); } if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getShieldedInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getConfidentialInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getConfidentialInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2383,30 +1944,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.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType().equals(other.getMachineType())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (getPoolSize() != other.getPoolSize()) return false; - if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (getPoolSize() + != other.getPoolSize()) return false; + if (getDisablePublicIpAddresses() + != other.getDisablePublicIpAddresses()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig() + .equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) - return false; + if (!getConfidentialInstanceConfig() + .equals(other.getConfidentialInstanceConfig())) return false; } - if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() + != other.getBootDiskSizeGb()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2429,8 +1995,8 @@ public int hashCode() { hash = (37 * hash) + POOL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPoolSize(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisablePublicIpAddresses()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -2446,103 +2012,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2552,43 +2103,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.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(); @@ -2614,22 +2161,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2637,20 +2181,15 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance b } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { if (((bitField0_ & 0x00000004) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); @@ -2658,8 +2197,7 @@ private void buildPartialRepeatedFields( result.tags_ = tags_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -2674,16 +2212,14 @@ private void buildPartial0( result.disablePublicIpAddresses_ = disablePublicIpAddresses_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.confidentialInstanceConfig_ = - confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -2694,54 +2230,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host.GceInstance) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -2803,65 +2331,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: - { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 66: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 72: - { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 72: { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + 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) { @@ -2871,25 +2391,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object machineType_ = ""; /** - * - * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2898,21 +2415,20 @@ public java.lang.String getMachineType() { } } /** - * - * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -2920,35 +2436,28 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; - * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -2958,21 +2467,17 @@ public Builder clearMachineType() { return this; } /** - * - * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -2982,23 +2487,22 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccount_ = ""; /** - * - * *
-         * Email address of the service account that will be used on VM instances
-         * used to support this config. This service account must have permission
-         * to pull the specified container image. If not set, VMs will run without
-         * a service account, in which case the image must be publicly accessible.
+         * Email address of the service account used on VM instances
+         * used to support this configuration. If not set, VMs run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image; otherwise, the image
+         * must be publicly accessible.
          * 
* * string service_account = 2; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -3007,24 +2511,24 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
-         * Email address of the service account that will be used on VM instances
-         * used to support this config. This service account must have permission
-         * to pull the specified container image. If not set, VMs will run without
-         * a service account, in which case the image must be publicly accessible.
+         * Email address of the service account used on VM instances
+         * used to support this configuration. If not set, VMs run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image; otherwise, the image
+         * must be publicly accessible.
          * 
* * string service_account = 2; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3032,41 +2536,36 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
-         * Email address of the service account that will be used on VM instances
-         * used to support this config. This service account must have permission
-         * to pull the specified container image. If not set, VMs will run without
-         * a service account, in which case the image must be publicly accessible.
+         * Email address of the service account used on VM instances
+         * used to support this configuration. If not set, VMs run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image; otherwise, the image
+         * must be publicly accessible.
          * 
* * string service_account = 2; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-         * Email address of the service account that will be used on VM instances
-         * used to support this config. This service account must have permission
-         * to pull the specified container image. If not set, VMs will run without
-         * a service account, in which case the image must be publicly accessible.
+         * Email address of the service account used on VM instances
+         * used to support this configuration. If not set, VMs run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image; otherwise, the image
+         * must be publicly accessible.
          * 
* * string service_account = 2; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -3076,24 +2575,21 @@ public Builder clearServiceAccount() { return this; } /** - * - * *
-         * Email address of the service account that will be used on VM instances
-         * used to support this config. This service account must have permission
-         * to pull the specified container image. If not set, VMs will run without
-         * a service account, in which case the image must be publicly accessible.
+         * Email address of the service account used on VM instances
+         * used to support this configuration. If not set, VMs run with a
+         * Google-managed service account. This service account must have
+         * permission to pull the specified container image; otherwise, the image
+         * must be publicly accessible.
          * 
* * string service_account = 2; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -3101,55 +2597,45 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_.getUnmodifiableView(); } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3157,95 +2643,81 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); onChanged(); return this; } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @return This builder for chaining. */ public Builder clearTags() { @@ -3255,22 +2727,18 @@ public Builder clearTags() { return this; } /** - * - * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -3278,16 +2746,13 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { return this; } - private int poolSize_; + private int poolSize_ ; /** - * - * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; - * * @return The poolSize. */ @java.lang.Override @@ -3295,33 +2760,27 @@ public int getPoolSize() { return poolSize_; } /** - * - * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; - * * @param value The poolSize to set. * @return This builder for chaining. */ public Builder setPoolSize(int value) { - + poolSize_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; - * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -3331,16 +2790,13 @@ public Builder clearPoolSize() { return this; } - private boolean disablePublicIpAddresses_; + private boolean disablePublicIpAddresses_ ; /** - * - * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; - * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -3348,33 +2804,27 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** - * - * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; - * * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ public Builder setDisablePublicIpAddresses(boolean value) { - + disablePublicIpAddresses_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; - * * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -3384,73 +2834,43 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ - public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - value) { + public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3464,20 +2884,14 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -3488,26 +2902,17 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ - public Builder mergeShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - value) { + public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -3520,15 +2925,11 @@ public Builder mergeShieldedInstanceConfig( return this; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3541,147 +2942,90 @@ public Builder clearShieldedInstanceConfig() { return this; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder> - confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ - public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - value) { + public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3695,20 +3039,14 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -3719,26 +3057,17 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ - public Builder mergeConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - value) { + public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && confidentialInstanceConfig_ != null - && confidentialInstanceConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + confidentialInstanceConfig_ != null && + confidentialInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -3751,15 +3080,11 @@ public Builder mergeConfidentialInstanceConfig( return this; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3772,90 +3097,60 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder - getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), getParentForChildren(), isClean()); + confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), + getParentForChildren(), + isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_; + private int bootDiskSizeGb_ ; /** - * - * *
          * Size of the boot disk in GB.
          * 
* * int32 boot_disk_size_gb = 9; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -3863,33 +3158,27 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** - * - * *
          * Size of the boot disk in GB.
          * 
* * int32 boot_disk_size_gb = 9; - * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(int value) { - + bootDiskSizeGb_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
          * Size of the boot disk in GB.
          * 
* * int32 boot_disk_size_gb = 9; - * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -3898,7 +3187,6 @@ public Builder clearBootDiskSizeGb() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3911,45 +3199,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,23 +3245,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int configCase_ = 0; private java.lang.Object config_; - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; - private ConfigCase(int value) { this.value = value; } @@ -3993,35 +3274,29 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: - return GCE_INSTANCE; - case 0: - return CONFIG_NOT_SET; - default: - return null; + case 1: return GCE_INSTANCE; + case 0: return CONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -4029,48 +3304,36 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4082,10 +3345,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (configCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -4097,10 +3360,8 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4110,18 +3371,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.workstations.v1beta.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance().equals(other.getGceInstance())) return false; + if (!getGceInstance() + .equals(other.getGceInstance())) return false; break; case 0: default: @@ -4151,94 +3412,87 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4248,41 +3502,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host) com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.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(); @@ -4296,14 +3548,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance(); } @@ -4318,26 +3569,22 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && gceInstanceBuilder_ != null) { + if (configCase_ == 1 && + gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -4346,41 +3593,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host) other); + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host)other); } else { super.mergeFrom(other); return this; @@ -4388,19 +3632,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: - { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: - { - break; - } + case GCE_INSTANCE: { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4428,19 +3668,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGceInstanceFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 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) { @@ -4450,12 +3690,12 @@ public Builder mergeFrom( } // finally return this; } - private int configCase_ = 0; private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public Builder clearConfig() { @@ -4468,21 +3708,13 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> - gceInstanceBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -4490,49 +3722,35 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { if (gceInstanceBuilder_ == null) { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public Builder setGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4546,19 +3764,14 @@ public Builder setGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ public Builder setGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -4569,29 +3782,18 @@ public Builder setGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public Builder mergeGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 - && config_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance()) { - config_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - config_) - .mergeFrom(value) - .buildPartial(); + if (configCase_ == 1 && + config_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { + config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_) + .mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -4607,15 +3809,11 @@ public Builder mergeGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -4634,72 +3832,49 @@ public Builder clearGceInstance() { return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - getGceInstanceBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); - } - gceInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( + config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -4709,7 +3884,6 @@ public Builder clearGceInstance() { onChanged(); return gceInstanceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4722,13 +3896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(); } @@ -4737,28 +3910,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4773,158 +3945,122 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PersistentDirectoryOrBuilder - extends + public interface PersistentDirectoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .DirectoryTypeCase - getDirectoryTypeCase(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); } /** - * - * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PersistentDirectory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PersistentDirectory(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); } - public interface GceRegionalPersistentDiskOrBuilder - extends + public interface GceRegionalPersistentDiskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Size of the disk in GB. Must be empty if source_snapshot is set.
        * 
* * int32 size_gb = 1; - * * @return The sizeGb. */ int getSizeGb(); /** - * - * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4932,13 +4068,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string fs_type = 2; - * * @return The fsType. */ java.lang.String getFsType(); /** - * - * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4946,118 +4079,91 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string fs_type = 2; - * * @return The bytes for fsType. */ - com.google.protobuf.ByteString getFsTypeBytes(); + com.google.protobuf.ByteString + getFsTypeBytes(); /** - * - * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; - * * @return The diskType. */ java.lang.String getDiskType(); /** - * - * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; - * * @return The bytes for diskType. */ - com.google.protobuf.ByteString getDiskTypeBytes(); + com.google.protobuf.ByteString + getDiskTypeBytes(); /** - * - * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; - * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** - * - * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; - * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString getSourceSnapshotBytes(); + com.google.protobuf.ByteString + getSourceSnapshotBytes(); /** - * - * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** - * - * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceRegionalPersistentDisk extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -5067,47 +4173,40 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); } /** - * - * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code - * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Do not use.
          * 
@@ -5116,8 +4215,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RECLAIM_POLICY_UNSPECIFIED(0), /** - * - * *
          * The persistent disk will be deleted with the workstation.
          * 
@@ -5126,8 +4223,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ DELETE(1), /** - * - * *
          * The persistent disk will be remain after the workstation is deleted,
          * and the administrator must manually delete the disk.
@@ -5140,8 +4235,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum {
         ;
 
         /**
-         *
-         *
          * 
          * Do not use.
          * 
@@ -5150,8 +4243,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
          * The persistent disk will be deleted with the workstation.
          * 
@@ -5160,8 +4251,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETE_VALUE = 1; /** - * - * *
          * The persistent disk will be remain after the workstation is deleted,
          * and the administrator must manually delete the disk.
@@ -5171,6 +4260,7 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RETAIN_VALUE = 2;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -5195,14 +4285,10 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0:
-              return RECLAIM_POLICY_UNSPECIFIED;
-            case 1:
-              return DELETE;
-            case 2:
-              return RETAIN;
-            default:
-              return null;
+            case 0: return RECLAIM_POLICY_UNSPECIFIED;
+            case 1: return DELETE;
+            case 2: return RETAIN;
+            default: return null;
           }
         }
 
@@ -5210,32 +4296,29 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
+        private static final com.google.protobuf.Internal.EnumLiteMap<
+            ReclaimPolicy> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public ReclaimPolicy findValueByNumber(int number) {
+                  return ReclaimPolicy.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap
-            internalValueMap =
-                new com.google.protobuf.Internal.EnumLiteMap() {
-                  public ReclaimPolicy findValueByNumber(int number) {
-                    return ReclaimPolicy.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.workstations.v1beta.WorkstationConfig.PersistentDirectory
-              .GceRegionalPersistentDisk.getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -5244,7 +4327,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-                "EnumValueDescriptor is not for this type.");
+              "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -5264,14 +4347,11 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
-       *
-       *
        * 
        * Size of the disk in GB. Must be empty if source_snapshot is set.
        * 
* * int32 size_gb = 1; - * * @return The sizeGb. */ @java.lang.Override @@ -5280,12 +4360,9 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** - * - * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -5293,7 +4370,6 @@ public int getSizeGb() {
        * 
* * string fs_type = 2; - * * @return The fsType. */ @java.lang.Override @@ -5302,15 +4378,14 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** - * - * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -5318,15 +4393,16 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2; - * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString getFsTypeBytes() { + public com.google.protobuf.ByteString + getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fsType_ = b; return b; } else { @@ -5335,18 +4411,14 @@ public com.google.protobuf.ByteString getFsTypeBytes() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** - * - * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; - * * @return The diskType. */ @java.lang.Override @@ -5355,29 +4427,29 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** - * - * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; - * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -5386,19 +4458,15 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** - * - * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; - * * @return The sourceSnapshot. */ @java.lang.Override @@ -5407,30 +4475,30 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** - * - * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; - * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -5441,54 +4509,32 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** - * - * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override - public int getReclaimPolicyValue() { + @java.lang.Override public int getReclaimPolicyValue() { return reclaimPolicy_; } /** - * - * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return The reclaimPolicy. */ - @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - result = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5500,7 +4546,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -5510,10 +4557,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED - .getNumber()) { + if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -5529,7 +4573,8 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -5537,11 +4582,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -5554,25 +4597,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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - obj; - - if (getSizeGb() != other.getSizeGb()) return false; - if (!getFsType().equals(other.getFsType())) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; + + if (getSizeGb() + != other.getSizeGb()) return false; + if (!getFsType() + .equals(other.getFsType())) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5600,117 +4639,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5720,47 +4730,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.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(); @@ -5774,26 +4777,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5801,25 +4797,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -5842,60 +4827,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -5943,43 +4914,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -5989,19 +4954,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int sizeGb_; + private int sizeGb_ ; /** - * - * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * 
* * int32 size_gb = 1; - * * @return The sizeGb. */ @java.lang.Override @@ -6009,33 +4970,27 @@ public int getSizeGb() { return sizeGb_; } /** - * - * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * 
* * int32 size_gb = 1; - * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(int value) { - + sizeGb_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * 
* * int32 size_gb = 1; - * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -6047,8 +5002,6 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** - * - * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -6056,13 +5009,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2; - * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -6071,8 +5024,6 @@ public java.lang.String getFsType() { } } /** - * - * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -6080,14 +5031,15 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2; - * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString getFsTypeBytes() { + public com.google.protobuf.ByteString + getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fsType_ = b; return b; } else { @@ -6095,8 +5047,6 @@ public com.google.protobuf.ByteString getFsTypeBytes() { } } /** - * - * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -6104,22 +5054,18 @@ public com.google.protobuf.ByteString getFsTypeBytes() {
          * 
* * string fs_type = 2; - * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFsType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -6127,7 +5073,6 @@ public Builder setFsType(java.lang.String value) {
          * 
* * string fs_type = 2; - * * @return This builder for chaining. */ public Builder clearFsType() { @@ -6137,8 +5082,6 @@ public Builder clearFsType() { return this; } /** - * - * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -6146,14 +5089,12 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2; - * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFsTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -6163,20 +5104,18 @@ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object diskType_ = ""; /** - * - * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; - * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -6185,21 +5124,20 @@ public java.lang.String getDiskType() { } } /** - * - * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; - * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -6207,35 +5145,28 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } } /** - * - * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; - * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; - * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -6245,21 +5176,17 @@ public Builder clearDiskType() { return this; } /** - * - * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; - * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -6269,21 +5196,19 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceSnapshot_ = ""; /** - * - * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; - * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -6292,22 +5217,21 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; - * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -6315,37 +5239,30 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } } /** - * - * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; - * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; - * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -6355,22 +5272,18 @@ public Builder clearSourceSnapshot() { return this; } /** - * - * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; - * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -6380,35 +5293,24 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { private int reclaimPolicy_ = 0; /** - * - * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override - public int getReclaimPolicyValue() { + @java.lang.Override public int getReclaimPolicyValue() { return reclaimPolicy_; } /** - * - * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -6419,52 +5321,30 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** - * - * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - result = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED - : result; + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; } /** - * - * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - value) { + public Builder setReclaimPolicy(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { if (value == null) { throw new NullPointerException(); } @@ -6474,17 +5354,12 @@ public Builder setReclaimPolicy( return this; } /** - * - * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -6493,7 +5368,6 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6506,48 +5380,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig - .PersistentDirectory.GceRegionalPersistentDisk - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6559,24 +5426,20 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - public enum DirectoryTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; - private DirectoryTypeCase(int value) { this.value = value; } @@ -6592,37 +5455,31 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: - return GCE_PD; - case 0: - return DIRECTORYTYPE_NOT_SET; - default: - return null; + case 2: return GCE_PD; + case 0: return DIRECTORYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** - * - * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; - * * @return The mountPath. */ @java.lang.Override @@ -6631,29 +5488,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -6663,16 +5520,11 @@ public com.google.protobuf.ByteString getMountPathBytes() { public static final int GCE_PD_FIELD_NUMBER = 2; /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -6680,56 +5532,36 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6741,16 +5573,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_); + output.writeMessage(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); } getUnknownFields().writeTo(output); } @@ -6765,12 +5594,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6780,20 +5605,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.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath().equals(other.getMountPath())) return false; + if (!getMountPath() + .equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd().equals(other.getGcePd())) return false; + if (!getGcePd() + .equals(other.getGcePd())) return false; break; case 0: default: @@ -6824,101 +5649,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6928,43 +5740,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.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(); @@ -6979,22 +5787,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7002,31 +5807,26 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && + gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -7035,69 +5835,59 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.PersistentDirectory) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: - { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: - { - break; - } + case GCE_PD: { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -7125,25 +5915,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getGcePdFieldBuilder().getBuilder(), + extensionRegistry); + directoryTypeCase_ = 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) { @@ -7153,12 +5942,12 @@ public Builder mergeFrom( } // finally return this; } - private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public Builder clearDirectoryType() { @@ -7172,20 +5961,18 @@ public Builder clearDirectoryType() { private java.lang.Object mountPath_ = ""; /** - * - * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -7194,21 +5981,20 @@ public java.lang.String getMountPath() { } } /** - * - * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -7216,35 +6002,28 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mountPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; - * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -7254,21 +6033,17 @@ public Builder clearMountPath() { return this; } /** - * - * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000001; @@ -7277,24 +6052,13 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder> - gcePdBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -7302,53 +6066,35 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - value) { + public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7362,20 +6108,14 @@ public Builder setGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -7386,33 +6126,18 @@ public Builder setGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public Builder mergeGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - value) { + public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 - && directoryType_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.newBuilder( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_) - .mergeFrom(value) - .buildPartial(); + if (directoryTypeCase_ == 2 && + directoryType_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) + .mergeFrom(value).buildPartial(); } else { directoryType_ = value; } @@ -7428,15 +6153,11 @@ public Builder mergeGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -7455,84 +6176,50 @@ public Builder clearGcePd() { return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder - getGcePdBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_, + directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -7541,7 +6228,6 @@ public Builder clearGcePd() { onChanged(); return gcePdBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7554,45 +6240,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7604,149 +6286,121 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContainerOrBuilder - extends + public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @return A list containing the command. */ - java.util.List getCommandList(); + java.util.List + getCommandList(); /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @return The count of command. */ int getCommandCount(); /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString getCommandBytes(int index); + com.google.protobuf.ByteString + getCommandBytes(int index); /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
      * Environment variables passed to the container.
      * 
@@ -7755,31 +6409,30 @@ public interface ContainerOrBuilder */ int getEnvCount(); /** - * - * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - boolean containsEnv(java.lang.String key); - /** Use {@link #getEnvMap()} instead. */ + boolean containsEnv( + java.lang.String key); + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnv(); + java.util.Map + getEnv(); /** - * - * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - java.util.Map getEnvMap(); + java.util.Map + getEnvMap(); /** - * - * *
      * Environment variables passed to the container.
      * 
@@ -7787,78 +6440,66 @@ public interface ContainerOrBuilder * map<string, string> env = 4; */ /* nullable */ - java.lang.String getEnvOrDefault( +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - java.lang.String getEnvOrThrow(java.lang.String key); + java.lang.String getEnvOrThrow( + java.lang.String key); /** - * - * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; - * * @return The workingDir. */ java.lang.String getWorkingDir(); /** - * - * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; - * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString getWorkingDirBytes(); + com.google.protobuf.ByteString + getWorkingDirBytes(); /** - * - * *
      * If set, overrides the USER specified in the image with the given uid.
      * 
* * int32 run_as_user = 6; - * * @return The runAsUser. */ int getRunAsUser(); } /** - * - * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - public static final class Container extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Container() { image_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -7868,55 +6509,51 @@ private Container() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Container(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_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 4: return internalGetEnv(); 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.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** - * - * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; - * * @return The image. */ @java.lang.Override @@ -7925,30 +6562,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -7957,46 +6594,37 @@ public com.google.protobuf.ByteString getImageBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { return command_; } /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -8004,62 +6632,51 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -8067,50 +6684,46 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; - private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
      * Environment variables passed to the container.
      * 
@@ -8118,21 +6731,20 @@ public int getEnvCount() { * map<string, string> env = 4; */ @java.lang.Override - public boolean containsEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnv().getMap().containsKey(key); } - /** Use {@link #getEnvMap()} instead. */ + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** - * - * *
      * Environment variables passed to the container.
      * 
@@ -8144,8 +6756,6 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** - * - * *
      * Environment variables passed to the container.
      * 
@@ -8153,19 +6763,17 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getEnvOrDefault( + public /* nullable */ +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Environment variables passed to the container.
      * 
@@ -8173,11 +6781,11 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public java.lang.String getEnvOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -8185,18 +6793,14 @@ public java.lang.String getEnvOrThrow(java.lang.String key) { } public static final int WORKING_DIR_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** - * - * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; - * * @return The workingDir. */ @java.lang.Override @@ -8205,29 +6809,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** - * - * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; - * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -8238,14 +6842,11 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** - * - * *
      * If set, overrides the USER specified in the image with the given uid.
      * 
* * int32 run_as_user = 6; - * * @return The runAsUser. */ @java.lang.Override @@ -8254,7 +6855,6 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8266,7 +6866,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -8276,8 +6877,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnv(), + EnvDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -8312,21 +6917,22 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry : - internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry env__ = - EnvDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); + for (java.util.Map.Entry entry + : internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry + env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8336,20 +6942,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.workstations.v1beta.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; - - if (!getImage().equals(other.getImage())) return false; - if (!getCommandList().equals(other.getCommandList())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!internalGetEnv().equals(other.internalGetEnv())) return false; - if (!getWorkingDir().equals(other.getWorkingDir())) return false; - if (getRunAsUser() != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!internalGetEnv().equals( + other.internalGetEnv())) return false; + if (!getWorkingDir() + .equals(other.getWorkingDir())) return false; + if (getRunAsUser() + != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8385,95 +6996,87 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container - 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Container prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8483,62 +7086,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Container) com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetEnv(); 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 4: return internalGetMutableEnv(); 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.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Container.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Container.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(); @@ -8555,16 +7157,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Container - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance(); } @java.lang.Override @@ -8578,18 +7178,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container build() @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -8602,8 +7198,7 @@ private void buildPartialRepeatedFields( result.args_ = args_; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -8624,53 +7219,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Container) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) other); + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Container)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Container - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -8696,7 +7284,8 @@ public Builder mergeFrom( } onChanged(); } - internalGetMutableEnv().mergeFrom(other.internalGetEnv()); + internalGetMutableEnv().mergeFrom( + other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -8732,54 +7321,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry env__ = - input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + env__ = input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put( + env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + 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) { @@ -8789,26 +7372,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object image_ = ""; /** - * - * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -8817,22 +7397,21 @@ public java.lang.String getImage() { } } /** - * - * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -8840,37 +7419,30 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; - * * @return This builder for chaining. */ public Builder clearImage() { @@ -8880,22 +7452,18 @@ public Builder clearImage() { return this; } /** - * - * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -8903,52 +7471,42 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList command_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { return command_.getUnmodifiableView(); } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -8956,90 +7514,76 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommand( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand(java.lang.Iterable values) { + public Builder addAllCommand( + java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); onChanged(); return this; } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @return This builder for chaining. */ public Builder clearCommand() { @@ -9049,21 +7593,17 @@ public Builder clearCommand() { return this; } /** - * - * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; - * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -9071,52 +7611,42 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList args_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_.getUnmodifiableView(); } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -9124,90 +7654,76 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addArgs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); onChanged(); return this; } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @return This builder for chaining. */ public Builder clearArgs() { @@ -9217,21 +7733,17 @@ public Builder clearArgs() { return this; } /** - * - * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -9239,19 +7751,21 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField( + EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -9260,13 +7774,10 @@ private com.google.protobuf.MapField interna onChanged(); return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
        * Environment variables passed to the container.
        * 
@@ -9274,21 +7785,20 @@ public int getEnvCount() { * map<string, string> env = 4; */ @java.lang.Override - public boolean containsEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnv().getMap().containsKey(key); } - /** Use {@link #getEnvMap()} instead. */ + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** - * - * *
        * Environment variables passed to the container.
        * 
@@ -9300,8 +7810,6 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** - * - * *
        * Environment variables passed to the container.
        * 
@@ -9309,19 +7817,17 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getEnvOrDefault( + public /* nullable */ +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Environment variables passed to the container.
        * 
@@ -9329,95 +7835,91 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public java.lang.String getEnvOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap().clear(); + internalGetMutableEnv().getMutableMap() + .clear(); return this; } /** - * - * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder removeEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnv().getMutableMap().remove(key); + public Builder removeEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnv().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnv() { + public java.util.Map + getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** - * - * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder putEnv(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableEnv().getMutableMap().put(key, value); + public Builder putEnv( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableEnv().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder putAllEnv(java.util.Map values) { - internalGetMutableEnv().getMutableMap().putAll(values); + public Builder putAllEnv( + java.util.Map values) { + internalGetMutableEnv().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** - * - * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; - * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -9426,21 +7928,20 @@ public java.lang.String getWorkingDir() { } } /** - * - * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; - * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -9448,35 +7949,28 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { } } /** - * - * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; - * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; - * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -9486,21 +7980,17 @@ public Builder clearWorkingDir() { return this; } /** - * - * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; - * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -9508,16 +7998,13 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { return this; } - private int runAsUser_; + private int runAsUser_ ; /** - * - * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; - * * @return The runAsUser. */ @java.lang.Override @@ -9525,33 +8012,27 @@ public int getRunAsUser() { return runAsUser_; } /** - * - * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; - * * @param value The runAsUser to set. * @return This builder for chaining. */ public Builder setRunAsUser(int value) { - + runAsUser_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; - * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -9560,7 +8041,6 @@ public Builder clearRunAsUser() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9573,44 +8053,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9622,47 +8099,39 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomerEncryptionKeyOrBuilder - extends + public interface CustomerEncryptionKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9674,13 +8143,10 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key_service_account = 2; - * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** - * - * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9692,14 +8158,12 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key_service_account = 2; - * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes(); } /** - * - * *
    * A customer-managed encryption key for the Compute Engine resources
    * of this workstation configuration.
@@ -9707,16 +8171,15 @@ public interface CustomerEncryptionKeyOrBuilder
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CustomerEncryptionKey extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -9724,45 +8187,39 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder
-                  .class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
-     *
-     *
      * 
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; - * * @return The kmsKey. */ @java.lang.Override @@ -9771,30 +8228,30 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + 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 { @@ -9803,12 +8260,9 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** - * - * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9820,7 +8274,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
      * 
* * string kms_key_service_account = 2; - * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -9829,15 +8282,14 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** - * - * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9849,15 +8301,16 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2; - * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -9866,7 +8319,6 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9878,7 +8330,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -9908,18 +8361,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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey().equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey() + .equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount() + .equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9940,101 +8392,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10044,45 +8483,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A customer-managed encryption key for the Compute Engine resources
      * of this workstation configuration.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.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(); @@ -10093,22 +8527,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10116,19 +8547,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.kmsKey_ = kmsKey_; @@ -10142,55 +8568,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this; if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; bitField0_ |= 0x00000001; @@ -10227,25 +8644,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - kmsKeyServiceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + kmsKeyServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -10255,26 +8669,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object kmsKey_ = ""; /** - * - * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; - * * @return The kmsKey. */ 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; @@ -10283,22 +8694,21 @@ public java.lang.String getKmsKey() { } } /** - * - * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + 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 { @@ -10306,37 +8716,30 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -10346,22 +8749,18 @@ public Builder clearKmsKey() { return this; } /** - * - * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -10371,8 +8770,6 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyServiceAccount_ = ""; /** - * - * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10384,13 +8781,13 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) {
        * 
* * string kms_key_service_account = 2; - * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -10399,8 +8796,6 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** - * - * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10412,14 +8807,15 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; - * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -10427,8 +8823,6 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { } } /** - * - * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10440,22 +8834,18 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() {
        * 
* * string kms_key_service_account = 2; - * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10467,7 +8857,6 @@ public Builder setKmsKeyServiceAccount(java.lang.String value) {
        * 
* * string kms_key_service_account = 2; - * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -10477,8 +8866,6 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** - * - * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10490,21 +8877,18 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; - * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10517,46 +8901,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig - .CustomerEncryptionKey - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10568,25 +8947,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -10595,29 +8970,29 @@ 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; } } /** - * - * *
    * Full name of this resource.
    * 
* * 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 { @@ -10626,18 +9001,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -10646,29 +9017,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; } } /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @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 { @@ -10677,18 +9048,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -10697,29 +9064,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -10730,15 +9097,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -10747,35 +9111,32 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -10783,21 +9144,20 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -10809,8 +9169,6 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Client-specified annotations.
    * 
@@ -10818,19 +9176,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Client-specified annotations.
    * 
@@ -10838,11 +9194,11 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -10850,34 +9206,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 18; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - 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_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -10886,21 +9240,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 18;
    */
   @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();
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -10913,8 +9266,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -10923,19 +9274,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+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;
   }
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -10944,11 +9293,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18;
    */
   @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();
     }
@@ -10958,15 +9307,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -10974,15 +9319,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -10990,14 +9331,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -11007,15 +9345,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -11023,15 +9357,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -11039,14 +9369,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -11056,15 +9383,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -11072,15 +9395,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -11088,14 +9407,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -11103,19 +9419,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The etag. */ @java.lang.Override @@ -11124,30 +9436,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -11158,8 +9470,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** - * - * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -11167,7 +9477,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * .google.protobuf.Duration idle_timeout = 10; - * * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -11175,8 +9484,6 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** - * - * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -11184,7 +9491,6 @@ public boolean hasIdleTimeout() {
    * 
* * .google.protobuf.Duration idle_timeout = 10; - * * @return The idleTimeout. */ @java.lang.Override @@ -11192,8 +9498,6 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** - * - * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -11210,8 +9514,6 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
   public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11;
   private com.google.protobuf.Duration runningTimeout_;
   /**
-   *
-   *
    * 
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -11220,7 +9522,6 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * 
* * .google.protobuf.Duration running_timeout = 11; - * * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -11228,8 +9529,6 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** - * - * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -11238,18 +9537,13 @@ public boolean hasRunningTimeout() {
    * 
* * .google.protobuf.Duration running_timeout = 11; - * * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } /** - * - * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -11261,22 +9555,17 @@ public com.google.protobuf.Duration getRunningTimeout() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
-    return runningTimeout_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : runningTimeout_;
+    return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_;
   }
 
   public static final int HOST_FIELD_NUMBER = 12;
   private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_;
   /**
-   *
-   *
    * 
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; - * * @return Whether the host field is set. */ @java.lang.Override @@ -11284,25 +9573,18 @@ public boolean hasHost() { return host_ != null; } /** - * - * *
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; - * * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } /** - * - * *
    * Runtime host for the workstation.
    * 
@@ -11311,110 +9593,79 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private java.util.List - persistentDirectories_; + private java.util.List persistentDirectories_; /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ @java.lang.Override - public java.util.List - getPersistentDirectoriesList() { + public java.util.List getPersistentDirectoriesList() { return persistentDirectories_; } /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + public java.util.List getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { return persistentDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; /** - * - * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; - * * @return Whether the container field is set. */ @java.lang.Override @@ -11422,26 +9673,19 @@ public boolean hasContainer() { return container_ != null; } /** - * - * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; - * * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { - return container_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; } /** - * - * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
@@ -11450,19 +9694,13 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getConta
    * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
    */
   @java.lang.Override
-  public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
-      getContainerOrBuilder() {
-    return container_ == null
-        ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()
-        : container_;
+  public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() {
+    return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_;
   }
 
   public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17;
-  private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey
-      encryptionKey_;
+  private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_;
   /**
-   *
-   *
    * 
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -11479,10 +9717,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getConta
    * automatically be stopped within 7 hours.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -11490,8 +9725,6 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** - * - * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -11508,23 +9741,14 @@ public boolean hasEncryptionKey() {
    * automatically be stopped within 7 hours.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getEncryptionKey() { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } /** - * - * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -11541,24 +9765,16 @@ public boolean hasEncryptionKey() {
    * automatically be stopped within 7 hours.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder() { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** - * - * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -11566,7 +9782,6 @@ public boolean hasEncryptionKey() {
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -11575,82 +9790,67 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11662,7 +9862,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_); } @@ -11675,8 +9876,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -11713,8 +9918,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 18); getUnknownFields().writeTo(output); } @@ -11734,65 +9943,75 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, persistentDirectories_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); - } - 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(18, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getEncryptionKey()); + } + 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(18, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11802,56 +10021,73 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig other = - (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout() + .equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout() + .equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost().equals(other.getHost())) return false; + if (!getHost() + .equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; + if (!getPersistentDirectoriesList() + .equals(other.getPersistentDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer().equals(other.getContainer())) return false; + if (!getContainer() + .equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; } - if (getDegraded() != other.getDegraded()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11870,7 +10106,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -11918,7 +10155,8 @@ public int hashCode() { hash = (53 * hash) + getEncryptionKey().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -11929,104 +10167,96 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 set of configuration options describing how a workstation will be run.
    * Workstation configurations are intended to be shared across multiple
@@ -12035,56 +10265,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig)
       com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           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 5:
           return internalGetMutableAnnotations();
         case 18:
           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.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.class,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.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();
@@ -12155,9 +10388,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -12176,18 +10409,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationConfig result =
-          new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
+      com.google.cloud.workstations.v1beta.WorkstationConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workstations.v1beta.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -12231,34 +10460,47 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ =
-            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
+        result.idleTimeout_ = idleTimeoutBuilder_ == null
+            ? idleTimeout_
+            : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ =
-            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
+        result.runningTimeout_ = runningTimeoutBuilder_ == null
+            ? runningTimeout_
+            : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null
+            ? host_
+            : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null
+            ? container_
+            : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.encryptionKey_ =
-            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
+        result.encryptionKey_ = encryptionKeyBuilder_ == null
+            ? encryptionKey_
+            : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.degraded_ = degraded_;
@@ -12269,39 +10511,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig) other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -12309,8 +10550,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -12329,9 +10569,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -12374,10 +10616,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPersistentDirectoriesFieldBuilder()
-                    : null;
+            persistentDirectoriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPersistentDirectoriesFieldBuilder() : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -12410,10 +10651,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00020000);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -12445,148 +10685,142 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 98
-            case 106:
-              {
-                com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
-                    input.readMessage(
-                        com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
-                            .parser(),
-                        extensionRegistry);
-                if (persistentDirectoriesBuilder_ == null) {
-                  ensurePersistentDirectoriesIsMutable();
-                  persistentDirectories_.add(m);
-                } else {
-                  persistentDirectoriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 120:
-              {
-                degraded_ = input.readBool();
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 120
-            case 130:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 130
-            case 138:
-              {
-                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 138
-            case 146:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 146
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getIdleTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getRunningTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getHostFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 98
+            case 106: {
+              com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
+                  input.readMessage(
+                      com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.parser(),
+                      extensionRegistry);
+              if (persistentDirectoriesBuilder_ == null) {
+                ensurePersistentDirectoriesIsMutable();
+                persistentDirectories_.add(m);
+              } else {
+                persistentDirectoriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getContainerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 120: {
+              degraded_ = input.readBool();
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 120
+            case 130: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 130
+            case 138: {
+              input.readMessage(
+                  getEncryptionKeyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 138
+            case 146: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 146
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -12596,25 +10830,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Full name of this resource.
      * 
* * 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; @@ -12623,21 +10854,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this resource.
      * 
* * 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 { @@ -12645,35 +10875,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -12683,21 +10906,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this resource.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -12707,20 +10926,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @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; @@ -12729,21 +10946,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @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 { @@ -12751,35 +10967,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -12789,21 +10998,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -12813,20 +11018,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -12835,21 +11038,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -12857,35 +11059,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -12895,21 +11090,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -12917,17 +11108,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -12935,35 +11123,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -12973,8 +11155,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -12983,12 +11165,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -12997,13 +11178,10 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -13011,21 +11189,20 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -13037,8 +11214,6 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Client-specified annotations.
      * 
@@ -13046,19 +11221,17 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Client-specified annotations.
      * 
@@ -13066,92 +11239,92 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -13160,13 +11333,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13175,21 +11345,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 18;
      */
     @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();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13202,8 +11371,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13212,19 +11379,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+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;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13233,25 +11398,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18;
      */
     @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();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13259,22 +11422,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13282,20 +11446,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 18;
      */
-    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");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    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"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -13303,66 +11464,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 18;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -13378,17 +11522,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -13399,21 +11540,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -13426,15 +11563,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -13447,15 +11580,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -13463,48 +11592,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -13512,58 +11629,39 @@ 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_; /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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(); } } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -13579,17 +11677,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -13600,21 +11695,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -13627,15 +11718,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -13648,15 +11735,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -13664,48 +11747,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; } } /** - * - * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -13713,58 +11784,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -13780,17 +11832,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -13801,21 +11850,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -13828,15 +11873,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -13849,15 +11890,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -13865,70 +11902,56 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } private java.lang.Object etag_ = ""; - /** - * - * + /** *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -13937,22 +11960,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -13960,37 +11982,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -14000,22 +12015,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -14025,13 +12036,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - idleTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; /** - * - * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14039,15 +12045,12 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Duration idle_timeout = 10; - * * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14055,21 +12058,16 @@ public boolean hasIdleTimeout() {
      * 
* * .google.protobuf.Duration idle_timeout = 10; - * * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleTimeout_; + return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** - * - * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14092,8 +12090,6 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14102,7 +12098,8 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration idle_timeout = 10;
      */
-    public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setIdleTimeout(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (idleTimeoutBuilder_ == null) {
         idleTimeout_ = builderForValue.build();
       } else {
@@ -14113,8 +12110,6 @@ public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14125,9 +12120,9 @@ public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForVal
      */
     public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
       if (idleTimeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0)
-            && idleTimeout_ != null
-            && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0) &&
+          idleTimeout_ != null &&
+          idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getIdleTimeoutBuilder().mergeFrom(value);
         } else {
           idleTimeout_ = value;
@@ -14140,8 +12135,6 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14161,8 +12154,6 @@ public Builder clearIdleTimeout() {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14177,8 +12168,6 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
       return getIdleTimeoutFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14191,14 +12180,11 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
       if (idleTimeoutBuilder_ != null) {
         return idleTimeoutBuilder_.getMessageOrBuilder();
       } else {
-        return idleTimeout_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : idleTimeout_;
+        return idleTimeout_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_;
       }
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -14208,17 +12194,14 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * .google.protobuf.Duration idle_timeout = 10;
      */
     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> 
         getIdleTimeoutFieldBuilder() {
       if (idleTimeoutBuilder_ == null) {
-        idleTimeoutBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getIdleTimeout(), getParentForChildren(), isClean());
+        idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getIdleTimeout(),
+                getParentForChildren(),
+                isClean());
         idleTimeout_ = null;
       }
       return idleTimeoutBuilder_;
@@ -14226,13 +12209,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
 
     private com.google.protobuf.Duration runningTimeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        runningTimeoutBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_;
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14241,15 +12219,12 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration running_timeout = 11; - * * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14258,21 +12233,16 @@ public boolean hasRunningTimeout() {
      * 
* * .google.protobuf.Duration running_timeout = 11; - * * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** - * - * *
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14296,8 +12266,6 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14307,7 +12275,8 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration running_timeout = 11;
      */
-    public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setRunningTimeout(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (runningTimeoutBuilder_ == null) {
         runningTimeout_ = builderForValue.build();
       } else {
@@ -14318,8 +12287,6 @@ public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14331,9 +12298,9 @@ public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderFor
      */
     public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
       if (runningTimeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0)
-            && runningTimeout_ != null
-            && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0) &&
+          runningTimeout_ != null &&
+          runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getRunningTimeoutBuilder().mergeFrom(value);
         } else {
           runningTimeout_ = value;
@@ -14346,8 +12313,6 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14368,8 +12333,6 @@ public Builder clearRunningTimeout() {
       return this;
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14385,8 +12348,6 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
       return getRunningTimeoutFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14400,14 +12361,11 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
       if (runningTimeoutBuilder_ != null) {
         return runningTimeoutBuilder_.getMessageOrBuilder();
       } else {
-        return runningTimeout_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : runningTimeout_;
+        return runningTimeout_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_;
       }
     }
     /**
-     *
-     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -14418,17 +12376,14 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * .google.protobuf.Duration running_timeout = 11;
      */
     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> 
         getRunningTimeoutFieldBuilder() {
       if (runningTimeoutBuilder_ == null) {
-        runningTimeoutBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getRunningTimeout(), getParentForChildren(), isClean());
+        runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getRunningTimeout(),
+                getParentForChildren(),
+                isClean());
         runningTimeout_ = null;
       }
       return runningTimeoutBuilder_;
@@ -14436,47 +12391,34 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
 
     private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Host,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>
-        hostBuilder_;
+        com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> hostBuilder_;
     /**
-     *
-     *
      * 
      * Runtime host for the workstation.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; - * * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Runtime host for the workstation.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; - * * @return The host. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } else { return hostBuilder_.getMessage(); } } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14497,8 +12439,6 @@ public Builder setHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Ho return this; } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14517,8 +12457,6 @@ public Builder setHost( return this; } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14527,11 +12465,9 @@ public Builder setHost( */ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && host_ != null - && host_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + host_ != null && + host_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -14544,8 +12480,6 @@ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig. return this; } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14563,8 +12497,6 @@ public Builder clearHost() { return this; } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14577,8 +12509,6 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder getHo return getHostFieldBuilder().getBuilder(); } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14589,14 +12519,11 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getH if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } } /** - * - * *
      * Runtime host for the workstation.
      * 
@@ -14604,56 +12531,39 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getH * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( - getHost(), getParentForChildren(), isClean()); + hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( + getHost(), + getParentForChildren(), + isClean()); host_ = null; } return hostBuilder_; } - private java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> - persistentDirectories_ = java.util.Collections.emptyList(); - + private java.util.List persistentDirectories_ = + java.util.Collections.emptyList(); private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory>( - persistentDirectories_); + persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> - persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> - getPersistentDirectoriesList() { + public java.util.List getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -14661,15 +12571,11 @@ private void ensurePersistentDirectoriesIsMutable() { } } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -14679,18 +12585,13 @@ public int getPersistentDirectoriesCount() { } } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -14698,19 +12599,14 @@ public int getPersistentDirectoriesCount() { } } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder setPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14724,20 +12620,14 @@ public Builder setPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder setPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -14748,18 +12638,13 @@ public Builder setPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public Builder addPersistentDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14773,19 +12658,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder addPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14799,19 +12679,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -14822,20 +12697,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder addPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -14846,24 +12715,18 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder addAllPersistentDirectories( - java.lang.Iterable< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> - values) { + java.lang.Iterable values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -14871,15 +12734,11 @@ public Builder addAllPersistentDirectories( return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -14892,15 +12751,11 @@ public Builder clearPersistentDirectories() { return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -14913,54 +12768,39 @@ public Builder removePersistentDirectories(int index) { return this; } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - getPersistentDirectoriesBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( + int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); - } else { + return persistentDirectories_.get(index); } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> - getPersistentDirectoriesOrBuilderList() { + public java.util.List + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -14968,71 +12808,45 @@ public Builder removePersistentDirectories(int index) { } } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - addPersistentDirectoriesBuilder(int index) { - return getPersistentDirectoriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( + int index) { + return getPersistentDirectoriesFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); } /** - * - * *
      * Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder> - getPersistentDirectoriesBuilderList() { + public java.util.List + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig - .PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -15044,49 +12858,36 @@ public Builder removePersistentDirectories(int index) { private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> - containerBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> containerBuilder_; /** - * - * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; - * * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; - * * @return The container. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** - * - * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15094,8 +12895,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getConta
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public Builder setContainer(
-        com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
+    public Builder setContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
       if (containerBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -15109,8 +12909,6 @@ public Builder setContainer(
       return this;
     }
     /**
-     *
-     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15130,8 +12928,6 @@ public Builder setContainer(
       return this;
     }
     /**
-     *
-     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15139,14 +12935,11 @@ public Builder setContainer(
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public Builder mergeContainer(
-        com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
+    public Builder mergeContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
       if (containerBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0)
-            && container_ != null
-            && container_
-                != com.google.cloud.workstations.v1beta.WorkstationConfig.Container
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0) &&
+          container_ != null &&
+          container_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) {
           getContainerBuilder().mergeFrom(value);
         } else {
           container_ = value;
@@ -15159,8 +12952,6 @@ public Builder mergeContainer(
       return this;
     }
     /**
-     *
-     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15179,8 +12970,6 @@ public Builder clearContainer() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15188,15 +12977,12 @@ public Builder clearContainer() {
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder
-        getContainerBuilder() {
+    public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder getContainerBuilder() {
       bitField0_ |= 0x00004000;
       onChanged();
       return getContainerFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15204,19 +12990,15 @@ public Builder clearContainer() {
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
-        getContainerOrBuilder() {
+    public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() {
       if (containerBuilder_ != null) {
         return containerBuilder_.getMessageOrBuilder();
       } else {
-        return container_ == null
-            ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()
-            : container_;
+        return container_ == null ?
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_;
       }
     }
     /**
-     *
-     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -15225,32 +13007,23 @@ public Builder clearContainer() {
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Container,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>
+        com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> 
         getContainerFieldBuilder() {
       if (containerBuilder_ == null) {
-        containerBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.workstations.v1beta.WorkstationConfig.Container,
-                com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder,
-                com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>(
-                getContainer(), getParentForChildren(), isClean());
+        containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>(
+                getContainer(),
+                getParentForChildren(),
+                isClean());
         container_ = null;
       }
       return containerBuilder_;
     }
 
-    private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey
-        encryptionKey_;
+    private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder>
-        encryptionKeyBuilder_;
+        com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_;
     /**
-     *
-     *
      * 
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15267,18 +13040,13 @@ public Builder clearContainer() {
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15295,26 +13063,17 @@ public boolean hasEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; * @return The encryptionKey. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getEncryptionKey() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15331,12 +13090,9 @@ public boolean hasEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ - public Builder setEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15350,8 +13106,6 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15368,13 +13122,10 @@ public Builder setEncryptionKey(
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -15385,8 +13136,6 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15403,18 +13152,13 @@ public Builder setEncryptionKey(
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ - public Builder mergeEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && encryptionKey_ != null - && encryptionKey_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + encryptionKey_ != null && + encryptionKey_ != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -15427,8 +13171,6 @@ public Builder mergeEncryptionKey( return this; } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15445,9 +13187,7 @@ public Builder mergeEncryptionKey(
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00008000); @@ -15460,8 +13200,6 @@ public Builder clearEncryptionKey() { return this; } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15478,19 +13216,14 @@ public Builder clearEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder - getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { bitField0_ |= 0x00008000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15507,24 +13240,17 @@ public Builder clearEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } } /** - * - * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -15541,33 +13267,24 @@ public Builder clearEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig - .CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), getParentForChildren(), isClean()); + encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), + getParentForChildren(), + isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private boolean degraded_; + private boolean degraded_ ; /** - * - * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -15575,7 +13292,6 @@ public Builder clearEncryptionKey() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -15583,8 +13299,6 @@ public boolean getDegraded() { return degraded_; } /** - * - * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -15592,20 +13306,17 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The degraded to set. * @return This builder for chaining. */ public Builder setDegraded(boolean value) { - + degraded_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** - * - * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -15613,7 +13324,6 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -15623,29 +13333,24 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = java.util.Collections.emptyList(); - + private java.util.List conditions_ = + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00020000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -15655,15 +13360,11 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -15673,15 +13374,11 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -15691,17 +13388,14 @@ public com.google.rpc.Status getConditions(int index) { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status value) { + public Builder setConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15715,17 +13409,14 @@ public Builder setConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -15736,15 +13427,11 @@ public Builder setConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -15760,17 +13447,14 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status value) { + public Builder addConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15784,17 +13468,14 @@ public Builder addConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -15805,17 +13486,14 @@ public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -15826,20 +13504,18 @@ public Builder addConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllConditions(java.lang.Iterable values) { + public Builder addAllConditions( + java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -15847,15 +13523,11 @@ public Builder addAllConditions(java.lang.Iterable * Output only. Status conditions describing the current resource state. *
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -15868,15 +13540,11 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -15889,49 +13557,39 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder getConditionsBuilder(int index) { + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -15939,66 +13597,56 @@ public java.util.List getConditionsOrB } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - 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> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - conditions_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00020000) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -16008,12 +13656,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig) private static final com.google.cloud.workstations.v1beta.WorkstationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig(); } @@ -16022,27 +13670,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16057,4 +13705,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java similarity index 77% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java index 72d9e2353375..c5ba0da83b99 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java @@ -1,120 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationConfigOrBuilder - extends +public interface WorkstationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Client-specified annotations.
    * 
@@ -123,31 +87,30 @@ public interface WorkstationConfigOrBuilder */ int getAnnotationsCount(); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Client-specified annotations.
    * 
@@ -155,24 +118,21 @@ public interface WorkstationConfigOrBuilder * map<string, string> annotations = 5; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -182,8 +142,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -191,13 +149,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 18;
    */
-  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();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -205,10 +165,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 18;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -217,13 +176,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 18;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -231,152 +188,113 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -384,13 +302,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.protobuf.Duration idle_timeout = 10; - * * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** - * - * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -398,13 +313,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.protobuf.Duration idle_timeout = 10; - * * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** - * - * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -416,8 +328,6 @@ java.lang.String getLabelsOrDefault(
   com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder();
 
   /**
-   *
-   *
    * 
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -426,13 +336,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.protobuf.Duration running_timeout = 11; - * * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** - * - * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -441,13 +348,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * .google.protobuf.Duration running_timeout = 11; - * * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** - * - * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -460,32 +364,24 @@ java.lang.String getLabelsOrDefault(
   com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder();
 
   /**
-   *
-   *
    * 
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; - * * @return Whether the host field is set. */ boolean hasHost(); /** - * - * *
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; - * * @return The host. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost(); /** - * - * *
    * Runtime host for the workstation.
    * 
@@ -495,101 +391,70 @@ java.lang.String getLabelsOrDefault( com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ int getPersistentDirectoriesCount(); /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + java.util.List getPersistentDirectoriesOrBuilderList(); /** - * - * *
    * Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index); /** - * - * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; - * * @return Whether the container field is set. */ boolean hasContainer(); /** - * - * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; - * * @return The container. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer(); /** - * - * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
@@ -600,8 +465,6 @@ java.lang.String getLabelsOrDefault(
   com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder();
 
   /**
-   *
-   *
    * 
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -618,16 +481,11 @@ java.lang.String getLabelsOrDefault(
    * automatically be stopped within 7 hours.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** - * - * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -644,16 +502,11 @@ java.lang.String getLabelsOrDefault(
    * automatically be stopped within 7 hours.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; * @return The encryptionKey. */ com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** - * - * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -670,16 +523,11 @@ java.lang.String getLabelsOrDefault(
    * automatically be stopped within 7 hours.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); /** - * - * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -687,64 +535,51 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ boolean getDegraded(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getConditions(int index); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java index ef067c8a562f..ee88c8c3d60f 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java @@ -1,120 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationOrBuilder - extends +public interface WorkstationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.Workstation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this resource.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Client-specified annotations.
    * 
@@ -123,31 +87,30 @@ public interface WorkstationOrBuilder */ int getAnnotationsCount(); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Client-specified annotations.
    * 
@@ -155,24 +118,21 @@ public interface WorkstationOrBuilder * map<string, string> annotations = 5; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -182,8 +142,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -191,13 +149,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 13;
    */
-  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();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -205,10 +165,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 13;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -217,13 +176,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 13;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -231,181 +188,132 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workstations.v1beta.Workstation.State getState(); /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -415,13 +323,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -431,8 +336,8 @@ java.lang.String getLabelsOrDefault(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java new file mode 100644 index 000000000000..9a6bd00dc421 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java @@ -0,0 +1,954 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public final class WorkstationsProto { + private WorkstationsProto() {} + 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_workstations_v1beta_WorkstationCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/workstations/v1beta/works" + + "tations.proto\022 google.cloud.workstations" + + ".v1beta\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\036google/protobuf/duration.proto\032 google/" + + "protobuf/field_mask.proto\032\037google/protob" + + "uf/timestamp.proto\032\027google/rpc/status.pr" + + "oto\"\255\010\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003" + + "\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022Z\n\013annotation" + + "s\030\005 \003(\0132E.google.cloud.workstations.v1be" + + "ta.WorkstationCluster.AnnotationsEntry\022P" + + "\n\006labels\030\017 \003(\0132@.google.cloud.workstatio" + + "ns.v1beta.WorkstationCluster.LabelsEntry" + + "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\014\n\004etag\030\t \001(\t\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027" + + "\n\nsubnetwork\030\013 \001(\tB\003\340A\005\022i\n\026private_clust" + + "er_config\030\014 \001(\0132I.google.cloud.workstati" + + "ons.v1beta.WorkstationCluster.PrivateClu" + + "sterConfig\022\025\n\010degraded\030\r \001(\010B\003\340A\003\022+\n\ncon" + + "ditions\030\016 \003(\0132\022.google.rpc.StatusB\003\340A\003\032\232" + + "\001\n\024PrivateClusterConfig\022$\n\027enable_privat" + + "e_endpoint\030\001 \001(\010B\003\340A\005\022\035\n\020cluster_hostnam" + + "e\030\002 \001(\tB\003\340A\003\022#\n\026service_attachment_uri\030\003" + + " \001(\tB\003\340A\003\022\030\n\020allowed_projects\030\004 \003(\t\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:\212\001\352A\206\001\n.workstations.goog" + + "leapis.com/WorkstationCluster\022Qprojects/" + + "{project}/locations/{location}/workstati" + + "onClusters/{workstation_cluster}R\001\001\"\341\025\n\021" + + "WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" + + "ay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013recon" + + "ciling\030\004 \001(\010B\003\340A\003\022Y\n\013annotations\030\005 \003(\0132D" + + ".google.cloud.workstations.v1beta.Workst" + + "ationConfig.AnnotationsEntry\022O\n\006labels\030\022" + + " \003(\0132?.google.cloud.workstations.v1beta." + + "WorkstationConfig.LabelsEntry\0224\n\013create_" + + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030" + + "\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132\031.google.pro" + + "tobuf.Duration\0222\n\017running_timeout\030\013 \001(\0132" + + "\031.google.protobuf.Duration\022F\n\004host\030\014 \001(\013" + + "28.google.cloud.workstations.v1beta.Work" + + "stationConfig.Host\022g\n\026persistent_directo" + + "ries\030\r \003(\0132G.google.cloud.workstations.v" + + "1beta.WorkstationConfig.PersistentDirect" + + "ory\022P\n\tcontainer\030\016 \001(\0132=.google.cloud.wo" + + "rkstations.v1beta.WorkstationConfig.Cont" + + "ainer\022a\n\016encryption_key\030\021 \001(\0132I.google.c" + + "loud.workstations.v1beta.WorkstationConf" + + "ig.CustomerEncryptionKey\022\025\n\010degraded\030\017 \001" + + "(\010B\003\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc" + + ".StatusB\003\340A\003\032\325\005\n\004Host\022\\\n\014gce_instance\030\001 " + + "\001(\0132D.google.cloud.workstations.v1beta.W" + + "orkstationConfig.Host.GceInstanceH\000\032\344\004\n\013" + + "GceInstance\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017ser" + + "vice_account\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool" + + "_size\030\005 \001(\005\022#\n\033disable_public_ip_address" + + "es\030\006 \001(\010\022\200\001\n\030shielded_instance_config\030\010 " + + "\001(\0132^.google.cloud.workstations.v1beta.W" + + "orkstationConfig.Host.GceInstance.GceShi" + + "eldedInstanceConfig\022\210\001\n\034confidential_ins" + + "tance_config\030\n \001(\0132b.google.cloud.workst" + + "ations.v1beta.WorkstationConfig.Host.Gce" + + "Instance.GceConfidentialInstanceConfig\022\031" + + "\n\021boot_disk_size_gb\030\t \001(\005\032q\n\031GceShielded" + + "InstanceConfig\022\032\n\022enable_secure_boot\030\001 \001" + + "(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable_integr" + + "ity_monitoring\030\003 \001(\010\032D\n\035GceConfidentialI" + + "nstanceConfig\022#\n\033enable_confidential_com" + + "pute\030\001 \001(\010B\010\n\006config\032\357\003\n\023PersistentDirec" + + "tory\022\022\n\nmount_path\030\001 \001(\t\022s\n\006gce_pd\030\002 \001(\013" + + "2a.google.cloud.workstations.v1beta.Work" + + "stationConfig.PersistentDirectory.GceReg" + + "ionalPersistentDiskH\000\032\274\002\n\031GceRegionalPer" + + "sistentDisk\022\017\n\007size_gb\030\001 \001(\005\022\017\n\007fs_type\030" + + "\002 \001(\t\022\021\n\tdisk_type\030\003 \001(\t\022\027\n\017source_snaps" + + "hot\030\005 \001(\t\022\207\001\n\016reclaim_policy\030\004 \001(\0162o.goo" + + "gle.cloud.workstations.v1beta.Workstatio" + + "nConfig.PersistentDirectory.GceRegionalP" + + "ersistentDisk.ReclaimPolicy\"G\n\rReclaimPo" + + "licy\022\036\n\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006" + + "DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\344" + + "\001\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002" + + " \003(\t\022\014\n\004args\030\003 \003(\t\022S\n\003env\030\004 \003(\0132F.google" + + ".cloud.workstations.v1beta.WorkstationCo" + + "nfig.Container.EnvEntry\022\023\n\013working_dir\030\005" + + " \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010EnvEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I\n\025Custome" + + "rEncryptionKey\022\017\n\007kms_key\030\001 \001(\t\022\037\n\027kms_k" + + "ey_service_account\030\002 \001(\t\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\261\001\352A\255\001\n-workstations.googleapis.com/" + + "WorkstationConfig\022yprojects/{project}/lo" + + "cations/{location}/workstationClusters/{" + + "workstation_cluster}/workstationConfigs/" + + "{workstation_config}R\001\001\"\244\007\n\013Workstation\022" + + "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003u" + + "id\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022" + + "S\n\013annotations\030\005 \003(\0132>.google.cloud.work" + + "stations.v1beta.Workstation.AnnotationsE" + + "ntry\022I\n\006labels\030\r \003(\01329.google.cloud.work" + + "stations.v1beta.Workstation.LabelsEntry\022" + + "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" + + "me\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022\014\n\004etag\030\t \001(\t\022G\n\005state\030\n \001(\01623.google." + + "cloud.workstations.v1beta.Workstation.St" + + "ateB\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020Annotatio" + + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022" + + "\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n" + + "\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352" + + "A\303\001\n\'workstations.googleapis.com/Worksta" + + "tion\022\224\001projects/{project}/locations/{loc" + + "ation}/workstationClusters/{workstation_" + + "cluster}/workstationConfigs/{workstation" + + "_config}/workstations/{workstation}R\001\001\"d" + + "\n\034GetWorkstationClusterRequest\022D\n\004name\030\001" + + " \001(\tB6\340A\002\372A0\n.workstations.googleapis.co" + + "m/WorkstationCluster\"\217\001\n\036ListWorkstation" + + "ClustersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022" + + ".workstations.googleapis.com/Workstation" + + "Cluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\243\001\n\037ListWorkstationClustersRespon" + + "se\022R\n\024workstation_clusters\030\001 \003(\01324.googl" + + "e.cloud.workstations.v1beta.WorkstationC" + + "luster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\375\001\n\037CreateWorkstationCluste" + + "rRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workst" + + "ations.googleapis.com/WorkstationCluster" + + "\022#\n\026workstation_cluster_id\030\002 \001(\tB\003\340A\002\022V\n" + + "\023workstation_cluster\030\003 \001(\01324.google.clou" + + "d.workstations.v1beta.WorkstationCluster" + + "B\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\335\001\n\037UpdateW" + + "orkstationClusterRequest\022V\n\023workstation_" + + "cluster\030\001 \001(\01324.google.cloud.workstation" + + "s.v1beta.WorkstationClusterB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_m" + + "issing\030\004 \001(\010\"\233\001\n\037DeleteWorkstationCluste" + + "rRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.workstat" + + "ions.googleapis.com/WorkstationCluster\022\025" + + "\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005f" + + "orce\030\004 \001(\010\"b\n\033GetWorkstationConfigReques" + + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstations.go" + + "ogleapis.com/WorkstationConfig\"\216\001\n\035ListW" + + "orkstationConfigsRequest\022F\n\006parent\030\001 \001(\t" + + "B6\340A\002\372A0\n.workstations.googleapis.com/Wo" + + "rkstationCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\240\001\n\036ListWorkstationConfi" + + "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" + + "3.google.cloud.workstations.v1beta.Works" + + "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\224\001\n#ListUsableWorksta" + + "tionConfigsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + + "A0\n.workstations.googleapis.com/Workstat" + + "ionCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"\246\001\n$ListUsableWorkstationConfi" + + "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" + + "3.google.cloud.workstations.v1beta.Works" + + "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\371\001\n\036CreateWorkstation" + + "ConfigRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.w" + + "orkstations.googleapis.com/WorkstationCl" + + "uster\022\"\n\025workstation_config_id\030\002 \001(\tB\003\340A" + + "\002\022T\n\022workstation_config\030\003 \001(\01323.google.c" + + "loud.workstations.v1beta.WorkstationConf" + + "igB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\332\001\n\036Updat" + + "eWorkstationConfigRequest\022T\n\022workstation" + + "_config\030\001 \001(\01323.google.cloud.workstation" + + "s.v1beta.WorkstationConfigB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" + + "ssing\030\004 \001(\010\"\231\001\n\036DeleteWorkstationConfigR" + + "equest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstatio" + + "ns.googleapis.com/WorkstationConfig\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005forc" + + "e\030\004 \001(\010\"V\n\025GetWorkstationRequest\022=\n\004name" + + "\030\001 \001(\tB/\340A\002\372A)\n\'workstations.googleapis." + + "com/Workstation\"\207\001\n\027ListWorkstationsRequ" + + "est\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-workstation" + + "s.googleapis.com/WorkstationConfig\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\215\001\n\030Li" + + "stWorkstationsResponse\022C\n\014workstations\030\001" + + " \003(\0132-.google.cloud.workstations.v1beta." + + "Workstation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWorkstat" + + "ionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wor" + + "kstations.googleapis.com/WorkstationConf" + + "ig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\223\001\n\036ListUsableWorkstationsResponse\022C\n\014" + + "workstations\030\001 \003(\0132-.google.cloud.workst" + + "ations.v1beta.Workstation\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\336\001\n\030Crea" + + "teWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340A" + + "\002\372A/\n-workstations.googleapis.com/Workst" + + "ationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A\002" + + "\022G\n\013workstation\030\003 \001(\0132-.google.cloud.wor" + + "kstations.v1beta.WorkstationB\003\340A\002\022\025\n\rval" + + "idate_only\030\004 \001(\010\"\307\001\n\030UpdateWorkstationRe" + + "quest\022G\n\013workstation\030\001 \001(\0132-.google.clou" + + "d.workstations.v1beta.WorkstationB\003\340A\002\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\ra" + + "llow_missing\030\004 \001(\010\"~\n\030DeleteWorkstationR" + + "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" + + "ns.googleapis.com/Workstation\022\025\n\rvalidat" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorks" + + "tationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'wor" + + "kstations.googleapis.com/Workstation\022\025\n\r" + + "validate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026Sto" + + "pWorkstationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A" + + ")\n\'workstations.googleapis.com/Workstati" + + "on\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"" + + "\315\001\n\032GenerateAccessTokenRequest\022D\n\013workst" + + "ation\030\001 \001(\tB/\340A\002\372A)\n\'workstations.google" + + "apis.com/Workstation\0221\n\013expire_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampH\000\022(\n\003ttl\030\003" + + " \001(\0132\031.google.protobuf.DurationH\000B\014\n\nexp" + + "iration\"d\n\033GenerateAccessTokenResponse\022\024" + + "\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp\"\200\002\n\021Operat" + + "ionMetadata\0224\n\013create_time\030\001 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" + + "target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016" + + "status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_c" + + "ancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 " + + "\001(\tB\003\340A\0032\337+\n\014Workstations\022\331\001\n\025GetWorksta" + + "tionCluster\022>.google.cloud.workstations." + + "v1beta.GetWorkstationClusterRequest\0324.go" + + "ogle.cloud.workstations.v1beta.Workstati" + + "onCluster\"J\202\323\344\223\002=\022;/v1beta/{name=project" + + "s/*/locations/*/workstationClusters/*}\332A" + + "\004name\022\354\001\n\027ListWorkstationClusters\022@.goog" + + "le.cloud.workstations.v1beta.ListWorksta" + + "tionClustersRequest\032A.google.cloud.works" + + "tations.v1beta.ListWorkstationClustersRe" + + "sponse\"L\202\323\344\223\002=\022;/v1beta/{parent=projects" + + "/*/locations/*}/workstationClusters\332A\006pa" + + "rent\022\265\002\n\030CreateWorkstationCluster\022A.goog" + + "le.cloud.workstations.v1beta.CreateWorks" + + "tationClusterRequest\032\035.google.longrunnin" + + "g.Operation\"\266\001\202\323\344\223\002R\";/v1beta/{parent=pr" + + "ojects/*/locations/*}/workstationCluster" + + "s:\023workstation_cluster\332A1parent,workstat" + + "ion_cluster,workstation_cluster_id\312A\'\n\022W" + + "orkstationCluster\022\021OperationMetadata\022\267\002\n" + + "\030UpdateWorkstationCluster\022A.google.cloud" + + ".workstations.v1beta.UpdateWorkstationCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"\270\001\202\323\344\223\002f2O/v1beta/{workstation_clust" + + "er.name=projects/*/locations/*/workstati" + + "onClusters/*}:\023workstation_cluster\332A\037wor" + + "kstation_cluster,update_mask\312A\'\n\022Worksta" + + "tionCluster\022\021OperationMetadata\022\362\001\n\030Delet" + + "eWorkstationCluster\022A.google.cloud.works" + + "tations.v1beta.DeleteWorkstationClusterR" + + "equest\032\035.google.longrunning.Operation\"t\202" + + "\323\344\223\002=*;/v1beta/{name=projects/*/location" + + "s/*/workstationClusters/*}\332A\004name\312A\'\n\022Wo" + + "rkstationCluster\022\021OperationMetadata\022\353\001\n\024" + + "GetWorkstationConfig\022=.google.cloud.work" + + "stations.v1beta.GetWorkstationConfigRequ" + + "est\0323.google.cloud.workstations.v1beta.W" + + "orkstationConfig\"_\202\323\344\223\002R\022P/v1beta/{name=" + + "projects/*/locations/*/workstationCluste" + + "rs/*/workstationConfigs/*}\332A\004name\022\376\001\n\026Li" + + "stWorkstationConfigs\022?.google.cloud.work" + + "stations.v1beta.ListWorkstationConfigsRe" + + "quest\032@.google.cloud.workstations.v1beta" + + ".ListWorkstationConfigsResponse\"a\202\323\344\223\002R\022" + + "P/v1beta/{parent=projects/*/locations/*/" + + "workstationClusters/*}/workstationConfig" + + "s\332A\006parent\022\233\002\n\034ListUsableWorkstationConf" + + "igs\022E.google.cloud.workstations.v1beta.L" + + "istUsableWorkstationConfigsRequest\032F.goo" + + "gle.cloud.workstations.v1beta.ListUsable" + + "WorkstationConfigsResponse\"l\202\323\344\223\002]\022[/v1b" + + "eta/{parent=projects/*/locations/*/works" + + "tationClusters/*}/workstationConfigs:lis" + + "tUsable\332A\006parent\022\304\002\n\027CreateWorkstationCo" + + "nfig\022@.google.cloud.workstations.v1beta." + + "CreateWorkstationConfigRequest\032\035.google." + + "longrunning.Operation\"\307\001\202\323\344\223\002f\"P/v1beta/" + + "{parent=projects/*/locations/*/workstati" + + "onClusters/*}/workstationConfigs:\022workst" + + "ation_config\332A/parent,workstation_config" + + ",workstation_config_id\312A&\n\021WorkstationCo" + + "nfig\022\021OperationMetadata\022\306\002\n\027UpdateWorkst" + + "ationConfig\022@.google.cloud.workstations." + + "v1beta.UpdateWorkstationConfigRequest\032\035." + + "google.longrunning.Operation\"\311\001\202\323\344\223\002y2c/" + + "v1beta/{workstation_config.name=projects" + + "/*/locations/*/workstationClusters/*/wor" + + "kstationConfigs/*}:\022workstation_config\332A" + + "\036workstation_config,update_mask\312A&\n\021Work" + + "stationConfig\022\021OperationMetadata\022\205\002\n\027Del" + + "eteWorkstationConfig\022@.google.cloud.work" + + "stations.v1beta.DeleteWorkstationConfigR" + + "equest\032\035.google.longrunning.Operation\"\210\001" + + "\202\323\344\223\002R*P/v1beta/{name=projects/*/locatio" + + "ns/*/workstationClusters/*/workstationCo" + + "nfigs/*}\332A\004name\312A&\n\021WorkstationConfig\022\021O" + + "perationMetadata\022\350\001\n\016GetWorkstation\0227.go" + + "ogle.cloud.workstations.v1beta.GetWorkst" + + "ationRequest\032-.google.cloud.workstations" + + ".v1beta.Workstation\"n\202\323\344\223\002a\022_/v1beta/{na" + + "me=projects/*/locations/*/workstationClu" + + "sters/*/workstationConfigs/*/workstation" + + "s/*}\332A\004name\022\373\001\n\020ListWorkstations\0229.googl" + + "e.cloud.workstations.v1beta.ListWorkstat" + + "ionsRequest\032:.google.cloud.workstations." + + "v1beta.ListWorkstationsResponse\"p\202\323\344\223\002a\022" + + "_/v1beta/{parent=projects/*/locations/*/" + + "workstationClusters/*/workstationConfigs" + + "/*}/workstations\332A\006parent\022\230\002\n\026ListUsable" + + "Workstations\022?.google.cloud.workstations" + + ".v1beta.ListUsableWorkstationsRequest\032@." + + "google.cloud.workstations.v1beta.ListUsa" + + "bleWorkstationsResponse\"{\202\323\344\223\002l\022j/v1beta" + + "/{parent=projects/*/locations/*/workstat" + + "ionClusters/*/workstationConfigs/*}/work" + + "stations:listUsable\332A\006parent\022\254\002\n\021CreateW" + + "orkstation\022:.google.cloud.workstations.v" + + "1beta.CreateWorkstationRequest\032\035.google." + + "longrunning.Operation\"\273\001\202\323\344\223\002n\"_/v1beta/" + + "{parent=projects/*/locations/*/workstati" + + "onClusters/*/workstationConfigs/*}/works" + + "tations:\013workstation\332A!parent,workstatio" + + "n,workstation_id\312A \n\013Workstation\022\021Operat" + + "ionMetadata\022\256\002\n\021UpdateWorkstation\022:.goog" + + "le.cloud.workstations.v1beta.UpdateWorks" + + "tationRequest\032\035.google.longrunning.Opera" + + "tion\"\275\001\202\323\344\223\002z2k/v1beta/{workstation.name" + + "=projects/*/locations/*/workstationClust" + + "ers/*/workstationConfigs/*/workstations/" + + "*}:\013workstation\332A\027workstation,update_mas" + + "k\312A \n\013Workstation\022\021OperationMetadata\022\202\002\n" + + "\021DeleteWorkstation\022:.google.cloud.workst" + + "ations.v1beta.DeleteWorkstationRequest\032\035" + + ".google.longrunning.Operation\"\221\001\202\323\344\223\002a*_" + + "/v1beta/{name=projects/*/locations/*/wor" + + "kstationClusters/*/workstationConfigs/*/" + + "workstations/*}\332A\004name\312A \n\013Workstation\022\021" + + "OperationMetadata\022\211\002\n\020StartWorkstation\0229" + + ".google.cloud.workstations.v1beta.StartW" + + "orkstationRequest\032\035.google.longrunning.O" + + "peration\"\232\001\202\323\344\223\002j\"e/v1beta/{name=project" + + "s/*/locations/*/workstationClusters/*/wo" + + "rkstationConfigs/*/workstations/*}:start" + + ":\001*\332A\004name\312A \n\013Workstation\022\021OperationMet" + + "adata\022\206\002\n\017StopWorkstation\0228.google.cloud" + + ".workstations.v1beta.StopWorkstationRequ" + + "est\032\035.google.longrunning.Operation\"\231\001\202\323\344" + + "\223\002i\"d/v1beta/{name=projects/*/locations/" + + "*/workstationClusters/*/workstationConfi" + + "gs/*/workstations/*}:stop:\001*\332A\004name\312A \n\013" + + "Workstation\022\021OperationMetadata\022\250\002\n\023Gener" + + "ateAccessToken\022<.google.cloud.workstatio" + + "ns.v1beta.GenerateAccessTokenRequest\032=.g" + + "oogle.cloud.workstations.v1beta.Generate" + + "AccessTokenResponse\"\223\001\202\323\344\223\002\177\"z/v1beta/{w" + + "orkstation=projects/*/locations/*/workst" + + "ationClusters/*/workstationConfigs/*/wor" + + "kstations/*}:generateAccessToken:\001*\332A\013wo" + + "rkstation\032O\312A\033workstations.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\205\001\n$com.google.cloud.workstat" + + "ions.v1betaB\021WorkstationsProtoP\001ZHcloud." + + "google.com/go/workstations/apiv1beta/wor" + + "kstationspb;workstationspbb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "PrivateClusterConfig", "Degraded", "Conditions", }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor, + new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "Container", "EncryptionKey", "Degraded", "Conditions", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor, + new java.lang.String[] { "GceInstance", "Config", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor, + new java.lang.String[] { "MachineType", "ServiceAccount", "Tags", "PoolSize", "DisablePublicIpAddresses", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, + new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, + new java.lang.String[] { "EnableConfidentialCompute", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor, + new java.lang.String[] { "MountPath", "GcePd", "DirectoryType", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, + new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor, + new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "State", "Host", }); + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor, + new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor, + new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor, + new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor, + new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor, + new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor, + new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor, + new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor, + new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor, + new java.lang.String[] { "Workstation", "ExpireTime", "Ttl", "Expiration", }); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor, + new java.lang.String[] { "AccessToken", "ExpireTime", }); + internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto similarity index 99% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto index 2849f45bcafd..772092c8e921 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto @@ -403,10 +403,11 @@ message WorkstationConfig { // The name of a Compute Engine machine type. string machine_type = 1; - // Email address of the service account that will be used on VM instances - // used to support this config. This service account must have permission - // to pull the specified container image. If not set, VMs will run without - // a service account, in which case the image must be publicly accessible. + // Email address of the service account used on VM instances + // used to support this configuration. If not set, VMs run with a + // Google-managed service account. This service account must have + // permission to pull the specified container image; otherwise, the image + // must be publicly accessible. string service_account = 2; // Network tags to add to the Compute Engine machines backing the diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java From d3bbb4ce6816ec7fb3645a1c7ed4947df7fafeea Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 13 Apr 2023 13:08:19 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-workstations/README.md | 2 +- .../google-cloud-workstations-bom/pom.xml | 10 + .../google-cloud-workstations/pom.xml | 9 + .../workstations/v1/WorkstationsClient.java | 0 .../workstations/v1/WorkstationsSettings.java | 1 - .../cloud/workstations/v1/gapic_metadata.json | 0 .../cloud/workstations/v1/package-info.java | 0 .../stub/GrpcWorkstationsCallableFactory.java | 0 .../v1/stub/GrpcWorkstationsStub.java | 1 - .../HttpJsonWorkstationsCallableFactory.java | 0 .../v1/stub/HttpJsonWorkstationsStub.java | 1 - .../v1/stub/WorkstationsStub.java | 0 .../v1/stub/WorkstationsStubSettings.java | 0 .../v1beta/WorkstationsClient.java | 0 .../v1beta/WorkstationsSettings.java | 1 - .../workstations/v1beta/gapic_metadata.json | 0 .../workstations/v1beta/package-info.java | 0 .../stub/GrpcWorkstationsCallableFactory.java | 0 .../v1beta/stub/GrpcWorkstationsStub.java | 1 - .../HttpJsonWorkstationsCallableFactory.java | 0 .../v1beta/stub/HttpJsonWorkstationsStub.java | 1 - .../v1beta/stub/WorkstationsStub.java | 0 .../v1beta/stub/WorkstationsStubSettings.java | 0 .../cloud/workstations/v1/MockIAMPolicy.java | 0 .../workstations/v1/MockIAMPolicyImpl.java | 0 .../cloud/workstations/v1/MockLocations.java | 0 .../workstations/v1/MockLocationsImpl.java | 0 .../workstations/v1/MockWorkstations.java | 0 .../workstations/v1/MockWorkstationsImpl.java | 0 .../v1/WorkstationsClientHttpJsonTest.java | 0 .../v1/WorkstationsClientTest.java | 0 .../workstations/v1beta/MockIAMPolicy.java | 0 .../v1beta/MockIAMPolicyImpl.java | 0 .../workstations/v1beta/MockLocations.java | 0 .../v1beta/MockLocationsImpl.java | 0 .../workstations/v1beta/MockWorkstations.java | 0 .../v1beta/MockWorkstationsImpl.java | 0 .../WorkstationsClientHttpJsonTest.java | 0 .../v1beta/WorkstationsClientTest.java | 0 .../grpc-google-cloud-workstations-v1/pom.xml | 69 + .../workstations/v1/WorkstationsGrpc.java | 2684 ++++++ .../workstations/v1beta/WorkstationsGrpc.java | 2699 ++++++ java-workstations/pom.xml | 12 + .../clirr-ignored-differences.xml | 19 + .../pom.xml | 46 + .../v1/CreateWorkstationClusterRequest.java | 652 +- ...ateWorkstationClusterRequestOrBuilder.java | 67 +- .../v1/CreateWorkstationConfigRequest.java | 649 +- ...eateWorkstationConfigRequestOrBuilder.java | 67 +- .../v1/CreateWorkstationRequest.java | 607 +- .../v1/CreateWorkstationRequestOrBuilder.java | 67 +- .../v1/DeleteWorkstationClusterRequest.java | 526 +- ...eteWorkstationClusterRequestOrBuilder.java | 50 +- .../v1/DeleteWorkstationConfigRequest.java | 526 +- ...leteWorkstationConfigRequestOrBuilder.java | 50 +- .../v1/DeleteWorkstationRequest.java | 464 +- .../v1/DeleteWorkstationRequestOrBuilder.java | 47 +- .../v1/GenerateAccessTokenRequest.java | 593 +- .../GenerateAccessTokenRequestOrBuilder.java | 54 +- .../v1/GenerateAccessTokenResponse.java | 427 +- .../GenerateAccessTokenResponseOrBuilder.java | 35 +- .../v1/GetWorkstationClusterRequest.java | 366 +- ...GetWorkstationClusterRequestOrBuilder.java | 54 + .../v1/GetWorkstationConfigRequest.java | 366 +- .../GetWorkstationConfigRequestOrBuilder.java | 54 + .../v1/GetWorkstationRequest.java | 356 +- .../v1/GetWorkstationRequestOrBuilder.java | 54 + .../ListUsableWorkstationConfigsRequest.java | 500 +- ...bleWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationConfigsResponse.java | 677 +- ...leWorkstationConfigsResponseOrBuilder.java | 60 +- .../v1/ListUsableWorkstationsRequest.java | 481 +- ...istUsableWorkstationsRequestOrBuilder.java | 47 +- .../v1/ListUsableWorkstationsResponse.java | 613 +- ...stUsableWorkstationsResponseOrBuilder.java | 63 +- .../v1/ListWorkstationClustersRequest.java | 487 +- ...stWorkstationClustersRequestOrBuilder.java | 47 +- .../v1/ListWorkstationClustersResponse.java | 696 +- ...tWorkstationClustersResponseOrBuilder.java | 75 +- .../v1/ListWorkstationConfigsRequest.java | 481 +- ...istWorkstationConfigsRequestOrBuilder.java | 47 +- .../v1/ListWorkstationConfigsResponse.java | 664 +- ...stWorkstationConfigsResponseOrBuilder.java | 60 +- .../v1/ListWorkstationsRequest.java | 461 +- .../v1/ListWorkstationsRequestOrBuilder.java | 47 +- .../v1/ListWorkstationsResponse.java | 587 +- .../v1/ListWorkstationsResponseOrBuilder.java | 63 +- .../cloud/workstations/v1/LocationName.java | 0 .../workstations/v1/OperationMetadata.java | 832 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/StartWorkstationRequest.java | 464 +- .../v1/StartWorkstationRequestOrBuilder.java | 47 +- .../v1/StopWorkstationRequest.java | 464 +- .../v1/StopWorkstationRequestOrBuilder.java | 47 +- .../v1/UpdateWorkstationClusterRequest.java | 644 +- ...ateWorkstationClusterRequestOrBuilder.java | 61 +- .../v1/UpdateWorkstationConfigRequest.java | 641 +- ...dateWorkstationConfigRequestOrBuilder.java | 61 +- .../v1/UpdateWorkstationRequest.java | 599 +- .../v1/UpdateWorkstationRequestOrBuilder.java | 61 +- .../cloud/workstations/v1/Workstation.java | 1689 ++-- .../workstations/v1/WorkstationCluster.java | 2744 ++++-- .../v1/WorkstationClusterName.java | 0 .../v1/WorkstationClusterOrBuilder.java | 249 +- .../workstations/v1/WorkstationConfig.java | 8247 ++++++++++------ .../v1/WorkstationConfigName.java | 0 .../v1/WorkstationConfigOrBuilder.java | 302 +- .../workstations/v1/WorkstationName.java | 0 .../workstations/v1/WorkstationOrBuilder.java | 191 +- .../workstations/v1/WorkstationsProto.java | 1091 +++ .../cloud/workstations/v1/workstations.proto | 0 .../CreateWorkstationClusterRequest.java | 664 +- ...ateWorkstationClusterRequestOrBuilder.java | 67 +- .../CreateWorkstationConfigRequest.java | 664 +- ...eateWorkstationConfigRequestOrBuilder.java | 67 +- .../v1beta/CreateWorkstationRequest.java | 618 +- .../CreateWorkstationRequestOrBuilder.java | 67 +- .../DeleteWorkstationClusterRequest.java | 538 +- ...eteWorkstationClusterRequestOrBuilder.java | 50 +- .../DeleteWorkstationConfigRequest.java | 538 +- ...leteWorkstationConfigRequestOrBuilder.java | 50 +- .../v1beta/DeleteWorkstationRequest.java | 474 +- .../DeleteWorkstationRequestOrBuilder.java | 47 +- .../v1beta/GenerateAccessTokenRequest.java | 616 +- .../GenerateAccessTokenRequestOrBuilder.java | 54 +- .../v1beta/GenerateAccessTokenResponse.java | 440 +- .../GenerateAccessTokenResponseOrBuilder.java | 35 +- .../v1beta/GetWorkstationClusterRequest.java | 387 +- ...GetWorkstationClusterRequestOrBuilder.java | 54 + .../v1beta/GetWorkstationConfigRequest.java | 379 +- .../GetWorkstationConfigRequestOrBuilder.java | 54 + .../v1beta/GetWorkstationRequest.java | 356 +- .../GetWorkstationRequestOrBuilder.java | 54 + .../ListUsableWorkstationConfigsRequest.java | 513 +- ...bleWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationConfigsResponse.java | 732 +- ...leWorkstationConfigsResponseOrBuilder.java | 74 +- .../v1beta/ListUsableWorkstationsRequest.java | 496 +- ...istUsableWorkstationsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationsResponse.java | 612 +- ...stUsableWorkstationsResponseOrBuilder.java | 63 +- .../ListWorkstationClustersRequest.java | 499 +- ...stWorkstationClustersRequestOrBuilder.java | 47 +- .../ListWorkstationClustersResponse.java | 724 +- ...tWorkstationClustersResponseOrBuilder.java | 74 +- .../v1beta/ListWorkstationConfigsRequest.java | 496 +- ...istWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListWorkstationConfigsResponse.java | 714 +- ...stWorkstationConfigsResponseOrBuilder.java | 74 +- .../v1beta/ListWorkstationsRequest.java | 471 +- .../ListWorkstationsRequestOrBuilder.java | 47 +- .../v1beta/ListWorkstationsResponse.java | 584 +- .../ListWorkstationsResponseOrBuilder.java | 63 +- .../workstations/v1beta/LocationName.java | 0 .../v1beta/OperationMetadata.java | 835 +- .../v1beta/OperationMetadataOrBuilder.java | 91 +- .../v1beta/StartWorkstationRequest.java | 474 +- .../StartWorkstationRequestOrBuilder.java | 47 +- .../v1beta/StopWorkstationRequest.java | 464 +- .../StopWorkstationRequestOrBuilder.java | 47 +- .../UpdateWorkstationClusterRequest.java | 656 +- ...ateWorkstationClusterRequestOrBuilder.java | 61 +- .../UpdateWorkstationConfigRequest.java | 656 +- ...dateWorkstationConfigRequestOrBuilder.java | 61 +- .../v1beta/UpdateWorkstationRequest.java | 610 +- .../UpdateWorkstationRequestOrBuilder.java | 61 +- .../workstations/v1beta/Workstation.java | 1696 ++-- .../v1beta/WorkstationCluster.java | 2755 ++++-- .../v1beta/WorkstationClusterName.java | 0 .../v1beta/WorkstationClusterOrBuilder.java | 249 +- .../v1beta/WorkstationConfig.java | 8383 +++++++++++------ .../v1beta/WorkstationConfigName.java | 0 .../v1beta/WorkstationConfigOrBuilder.java | 303 +- .../workstations/v1beta/WorkstationName.java | 0 .../v1beta/WorkstationOrBuilder.java | 191 +- .../v1beta/WorkstationsProto.java | 1101 +++ .../workstations/v1beta/workstations.proto | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkstation.java | 0 .../AsyncCreateWorkstationLRO.java | 0 .../SyncCreateWorkstation.java | 0 ...ateWorkstationStringWorkstationString.java | 0 ...orkstationconfignameWorkstationString.java | 0 .../AsyncCreateWorkstationCluster.java | 0 .../AsyncCreateWorkstationClusterLRO.java | 0 .../SyncCreateWorkstationCluster.java | 0 ...rLocationnameWorkstationclusterString.java | 0 ...ClusterStringWorkstationclusterString.java | 0 .../AsyncCreateWorkstationConfig.java | 0 .../AsyncCreateWorkstationConfigLRO.java | 0 .../SyncCreateWorkstationConfig.java | 0 ...onConfigStringWorkstationconfigString.java | 0 ...ionclusternameWorkstationconfigString.java | 0 .../AsyncDeleteWorkstation.java | 0 .../AsyncDeleteWorkstationLRO.java | 0 .../SyncDeleteWorkstation.java | 0 .../SyncDeleteWorkstationString.java | 0 .../SyncDeleteWorkstationWorkstationname.java | 0 .../AsyncDeleteWorkstationCluster.java | 0 .../AsyncDeleteWorkstationClusterLRO.java | 0 .../SyncDeleteWorkstationCluster.java | 0 .../SyncDeleteWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncDeleteWorkstationConfig.java | 0 .../AsyncDeleteWorkstationConfigLRO.java | 0 .../SyncDeleteWorkstationConfig.java | 0 .../SyncDeleteWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncGenerateAccessToken.java | 0 .../SyncGenerateAccessToken.java | 0 .../SyncGenerateAccessTokenString.java | 0 ...yncGenerateAccessTokenWorkstationname.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getworkstation/AsyncGetWorkstation.java | 0 .../getworkstation/SyncGetWorkstation.java | 0 .../SyncGetWorkstationString.java | 0 .../SyncGetWorkstationWorkstationname.java | 0 .../AsyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncListUsableWorkstationConfigs.java | 0 ...syncListUsableWorkstationConfigsPaged.java | 0 .../SyncListUsableWorkstationConfigs.java | 0 ...yncListUsableWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListUsableWorkstations.java | 0 .../AsyncListUsableWorkstationsPaged.java | 0 .../SyncListUsableWorkstations.java | 0 .../SyncListUsableWorkstationsString.java | 0 ...ableWorkstationsWorkstationconfigname.java | 0 .../AsyncListWorkstationClusters.java | 0 .../AsyncListWorkstationClustersPaged.java | 0 .../SyncListWorkstationClusters.java | 0 ...ncListWorkstationClustersLocationname.java | 0 .../SyncListWorkstationClustersString.java | 0 .../AsyncListWorkstationConfigs.java | 0 .../AsyncListWorkstationConfigsPaged.java | 0 .../SyncListWorkstationConfigs.java | 0 .../SyncListWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListWorkstations.java | 0 .../AsyncListWorkstationsPaged.java | 0 .../SyncListWorkstations.java | 0 .../SyncListWorkstationsString.java | 0 ...ListWorkstationsWorkstationconfigname.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncStartWorkstation.java | 0 .../AsyncStartWorkstationLRO.java | 0 .../SyncStartWorkstation.java | 0 .../SyncStartWorkstationString.java | 0 .../SyncStartWorkstationWorkstationname.java | 0 .../stopworkstation/AsyncStopWorkstation.java | 0 .../AsyncStopWorkstationLRO.java | 0 .../stopworkstation/SyncStopWorkstation.java | 0 .../SyncStopWorkstationString.java | 0 .../SyncStopWorkstationWorkstationname.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUpdateWorkstation.java | 0 .../AsyncUpdateWorkstationLRO.java | 0 .../SyncUpdateWorkstation.java | 0 ...UpdateWorkstationWorkstationFieldmask.java | 0 .../AsyncUpdateWorkstationCluster.java | 0 .../AsyncUpdateWorkstationClusterLRO.java | 0 .../SyncUpdateWorkstationCluster.java | 0 ...ionClusterWorkstationclusterFieldmask.java | 0 .../AsyncUpdateWorkstationConfig.java | 0 .../AsyncUpdateWorkstationConfigLRO.java | 0 .../SyncUpdateWorkstationConfig.java | 0 ...ationConfigWorkstationconfigFieldmask.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkstation.java | 0 .../AsyncCreateWorkstationLRO.java | 0 .../SyncCreateWorkstation.java | 0 ...ateWorkstationStringWorkstationString.java | 0 ...orkstationconfignameWorkstationString.java | 0 .../AsyncCreateWorkstationCluster.java | 0 .../AsyncCreateWorkstationClusterLRO.java | 0 .../SyncCreateWorkstationCluster.java | 0 ...rLocationnameWorkstationclusterString.java | 0 ...ClusterStringWorkstationclusterString.java | 0 .../AsyncCreateWorkstationConfig.java | 0 .../AsyncCreateWorkstationConfigLRO.java | 0 .../SyncCreateWorkstationConfig.java | 0 ...onConfigStringWorkstationconfigString.java | 0 ...ionclusternameWorkstationconfigString.java | 0 .../AsyncDeleteWorkstation.java | 0 .../AsyncDeleteWorkstationLRO.java | 0 .../SyncDeleteWorkstation.java | 0 .../SyncDeleteWorkstationString.java | 0 .../SyncDeleteWorkstationWorkstationname.java | 0 .../AsyncDeleteWorkstationCluster.java | 0 .../AsyncDeleteWorkstationClusterLRO.java | 0 .../SyncDeleteWorkstationCluster.java | 0 .../SyncDeleteWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncDeleteWorkstationConfig.java | 0 .../AsyncDeleteWorkstationConfigLRO.java | 0 .../SyncDeleteWorkstationConfig.java | 0 .../SyncDeleteWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncGenerateAccessToken.java | 0 .../SyncGenerateAccessToken.java | 0 .../SyncGenerateAccessTokenString.java | 0 ...yncGenerateAccessTokenWorkstationname.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getworkstation/AsyncGetWorkstation.java | 0 .../getworkstation/SyncGetWorkstation.java | 0 .../SyncGetWorkstationString.java | 0 .../SyncGetWorkstationWorkstationname.java | 0 .../AsyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncListUsableWorkstationConfigs.java | 0 ...syncListUsableWorkstationConfigsPaged.java | 0 .../SyncListUsableWorkstationConfigs.java | 0 ...yncListUsableWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListUsableWorkstations.java | 0 .../AsyncListUsableWorkstationsPaged.java | 0 .../SyncListUsableWorkstations.java | 0 .../SyncListUsableWorkstationsString.java | 0 ...ableWorkstationsWorkstationconfigname.java | 0 .../AsyncListWorkstationClusters.java | 0 .../AsyncListWorkstationClustersPaged.java | 0 .../SyncListWorkstationClusters.java | 0 ...ncListWorkstationClustersLocationname.java | 0 .../SyncListWorkstationClustersString.java | 0 .../AsyncListWorkstationConfigs.java | 0 .../AsyncListWorkstationConfigsPaged.java | 0 .../SyncListWorkstationConfigs.java | 0 .../SyncListWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListWorkstations.java | 0 .../AsyncListWorkstationsPaged.java | 0 .../SyncListWorkstations.java | 0 .../SyncListWorkstationsString.java | 0 ...ListWorkstationsWorkstationconfigname.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncStartWorkstation.java | 0 .../AsyncStartWorkstationLRO.java | 0 .../SyncStartWorkstation.java | 0 .../SyncStartWorkstationString.java | 0 .../SyncStartWorkstationWorkstationname.java | 0 .../stopworkstation/AsyncStopWorkstation.java | 0 .../AsyncStopWorkstationLRO.java | 0 .../stopworkstation/SyncStopWorkstation.java | 0 .../SyncStopWorkstationString.java | 0 .../SyncStopWorkstationWorkstationname.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUpdateWorkstation.java | 0 .../AsyncUpdateWorkstationLRO.java | 0 .../SyncUpdateWorkstation.java | 0 ...UpdateWorkstationWorkstationFieldmask.java | 0 .../AsyncUpdateWorkstationCluster.java | 0 .../AsyncUpdateWorkstationClusterLRO.java | 0 .../SyncUpdateWorkstationCluster.java | 0 ...ionClusterWorkstationclusterFieldmask.java | 0 .../AsyncUpdateWorkstationConfig.java | 0 .../AsyncUpdateWorkstationConfigLRO.java | 0 .../SyncUpdateWorkstationConfig.java | 0 ...ationConfigWorkstationconfigFieldmask.java | 0 .../SyncGetWorkstationCluster.java | 0 .../workstations/v1/WorkstationsGrpc.java | 1969 ---- ...GetWorkstationClusterRequestOrBuilder.java | 29 - .../GetWorkstationConfigRequestOrBuilder.java | 29 - .../v1/GetWorkstationRequestOrBuilder.java | 29 - .../workstations/v1/WorkstationsProto.java | 947 -- .../workstations/v1beta/WorkstationsGrpc.java | 1969 ---- ...GetWorkstationClusterRequestOrBuilder.java | 29 - .../GetWorkstationConfigRequestOrBuilder.java | 29 - .../GetWorkstationRequestOrBuilder.java | 29 - .../v1beta/WorkstationsProto.java | 954 -- versions.txt | 2 + 396 files changed, 46197 insertions(+), 27671 deletions(-) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java (99%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java (99%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java (99%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java (99%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java (99%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java (99%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java (100%) create mode 100644 java-workstations/grpc-google-cloud-workstations-v1/pom.xml create mode 100644 java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java create mode 100644 java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java create mode 100644 java-workstations/proto-google-cloud-workstations-v1/clirr-ignored-differences.xml create mode 100644 java-workstations/proto-google-cloud-workstations-v1/pom.xml rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java (61%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java (60%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java (53%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java (63%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java (53%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java (65%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java (59%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java (64%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java (58%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java (65%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java (70%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java (72%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java (68%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java (68%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java (60%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java (60%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java (61%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java (61%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java (50%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java (68%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java (73%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java (63%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java (50%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java (70%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java (62%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java (50%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java (68%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java (68%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java (63%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java (50%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java (69%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java (73%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java (65%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java (50%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java (72%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java (70%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java (66%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java (65%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java (62%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java (62%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java (62%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java (61%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java (64%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java (61%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java (65%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java (67%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java (72%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java (66%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java (77%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java (73%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java (60%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java (60%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java (53%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java (63%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java (53%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java (65%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java (60%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java (64%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java (58%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java (65%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java (69%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java (72%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java (68%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java (69%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java (59%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java (60%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java (62%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java (61%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java (51%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java (67%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java (63%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java (51%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java (71%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java (72%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java (62%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java (51%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java (67%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java (69%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java (63%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java (51%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java (68%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java (69%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java (65%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java (51%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java (72%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java (72%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java (70%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java (65%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java (66%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java (54%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java (62%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java (62%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java (62%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java (61%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java (64%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java (61%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java (66%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java (67%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java (72%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java (65%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java (77%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java (73%) create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%) rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%) rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) delete mode 100644 owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java delete mode 100644 owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java diff --git a/java-workstations/README.md b/java-workstations/README.md index 1f124ef03804..7af4182cb98c 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.11.0 + 26.12.0 pom import diff --git a/java-workstations/google-cloud-workstations-bom/pom.xml b/java-workstations/google-cloud-workstations-bom/pom.xml index e48bc2eb7807..a90cd048fc7c 100644 --- a/java-workstations/google-cloud-workstations-bom/pom.xml +++ b/java-workstations/google-cloud-workstations-bom/pom.xml @@ -34,11 +34,21 @@ grpc-google-cloud-workstations-v1beta 0.3.0-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-workstations-v1 + 0.3.0-SNAPSHOT + com.google.api.grpc proto-google-cloud-workstations-v1beta 0.3.0-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-workstations-v1 + 0.3.0-SNAPSHOT + diff --git a/java-workstations/google-cloud-workstations/pom.xml b/java-workstations/google-cloud-workstations/pom.xml index d84620d38c76..a1819b43708e 100644 --- a/java-workstations/google-cloud-workstations/pom.xml +++ b/java-workstations/google-cloud-workstations/pom.xml @@ -41,6 +41,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-workstations-v1 + com.google.api.grpc proto-google-cloud-workstations-v1beta @@ -65,6 +69,11 @@ com.google.api.grpc grpc-google-common-protos + + com.google.api.grpc + grpc-google-cloud-workstations-v1 + test + com.google.api.grpc proto-google-iam-v1 diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java similarity index 99% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java index eba733fc738c..f1d6ecaf6943 100644 --- a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java @@ -33,7 +33,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.workstations.v1.stub.WorkstationsStubSettings; diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java similarity index 99% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java index 24523ba51014..13854f9372f4 100644 --- a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.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-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java similarity index 99% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java index c9241e24e736..17f0ea868db1 100644 --- a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java @@ -35,7 +35,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-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java similarity index 99% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java index 2aa88795eb95..e793dc609bd1 100644 --- a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java @@ -33,7 +33,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.workstations.v1beta.stub.WorkstationsStubSettings; diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java similarity index 99% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java index 48f9e10ab969..f7ce0523e88e 100644 --- a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java @@ -71,7 +71,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-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java similarity index 99% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java index d6d49bd45010..43202f50f1f9 100644 --- a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java @@ -35,7 +35,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-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java rename to java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java b/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java rename to java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml new file mode 100644 index 000000000000..bd1892a3302b --- /dev/null +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -0,0 +1,69 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-workstations-v1 + 0.3.0-SNAPSHOT + grpc-google-cloud-workstations-v1 + GRPC library for google-cloud-workstations + + com.google.cloud + google-cloud-workstations-parent + 0.3.0-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-workstations-v1 + + + com.google.guava + guava + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + \ No newline at end of file diff --git a/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java new file mode 100644 index 000000000000..aef690f8f9a0 --- /dev/null +++ b/java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java @@ -0,0 +1,2684 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.workstations.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster> + getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster> + getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster> + getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = + getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = + getListWorkstationClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = + getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = + getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = + getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig> + getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig> + getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig> + getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = + getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = + getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = + getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = + getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = + getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = + getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation> + getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation> + getGetWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation> + getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = + getGetWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse> + getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse> + getListWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse> + getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = + getListWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = + getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = + getCreateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = + getUpdateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = + getDeleteWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = + getStartWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StartWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StopWorkstationRequest, com.google.longrunning.Operation> + getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StopWorkstationRequest, com.google.longrunning.Operation> + getStopWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = + getStopWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StopWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) + == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = + getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + default void listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public abstract static class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public void listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.Workstation getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.WorkstationCluster> + getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.WorkstationConfig> + getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all WorkstationConfigs in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.Workstation> + getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListWorkstationsResponse> + listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster( + (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters( + (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster( + (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster( + (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster( + (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig( + (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs( + (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs( + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig( + (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig( + (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig( + (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation( + (com.google.cloud.workstations.v1.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations( + (com.google.cloud.workstations.v1.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations( + (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation( + (com.google.cloud.workstations.v1.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation( + (com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation( + (com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation( + (com.google.cloud.workstations.v1.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation( + (com.google.cloud.workstations.v1.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken( + (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.GenerateAccessTokenResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StopWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private abstract static class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java new file mode 100644 index 000000000000..383b2de9423b --- /dev/null +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java @@ -0,0 +1,2699 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.workstations.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1beta/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.workstations.v1beta.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster> + getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster> + getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster> + getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = + getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = + getListWorkstationClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = + getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = + getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = + getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig> + getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig> + getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig> + getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = + getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = + getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + responseType = + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = + getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta + .ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta + .ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = + getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = + getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = + getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation> + getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1beta.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation> + getGetWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation> + getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = + getGetWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.Workstation + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + getListWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = + getListWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = + getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = + getCreateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = + getUpdateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = + getDeleteWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = + getStartWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StartWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = + getStopWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StopWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) + == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = + getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + default void listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public abstract static class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public void listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.Workstation getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.WorkstationCluster> + getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.WorkstationConfig> + getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.Workstation> + getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified config on which the caller has
+     * the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster( + (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters( + (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster( + (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster( + (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster( + (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig( + (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs( + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig( + (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig( + (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig( + (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation( + (com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations( + (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation( + (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation( + (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation( + (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation( + (com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation( + (com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken( + (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private abstract static class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workstations/pom.xml b/java-workstations/pom.xml index 03a1e912e425..45497ba9ea15 100644 --- a/java-workstations/pom.xml +++ b/java-workstations/pom.xml @@ -31,6 +31,16 @@ google-cloud-workstations 0.3.0-SNAPSHOT
+ + com.google.api.grpc + proto-google-cloud-workstations-v1 + 0.3.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-workstations-v1 + 0.3.0-SNAPSHOT + com.google.api.grpc grpc-google-cloud-workstations-v1beta @@ -47,7 +57,9 @@ google-cloud-workstations grpc-google-cloud-workstations-v1beta + grpc-google-cloud-workstations-v1 proto-google-cloud-workstations-v1beta + proto-google-cloud-workstations-v1 google-cloud-workstations-bom diff --git a/java-workstations/proto-google-cloud-workstations-v1/clirr-ignored-differences.xml b/java-workstations/proto-google-cloud-workstations-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..828110cd79f7 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/workstations/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/workstations/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/workstations/v1/*OrBuilder + boolean has*(*) + + diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml new file mode 100644 index 000000000000..2b57741dac0e --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-workstations-v1 + 0.3.0-SNAPSHOT + proto-google-cloud-workstations-v1 + Proto library for google-cloud-workstations + + com.google.cloud + google-cloud-workstations-parent + 0.3.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java index d0e809370a57..7bfb1659d57e 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -26,38 +45,45 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +92,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. Parent resource name.
    * 
* - * 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 { @@ -97,14 +125,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ @java.lang.Override @@ -113,29 +145,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -146,11 +178,16 @@ public java.lang.String getWorkstationClusterId() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -158,38 +195,55 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -198,6 +252,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +264,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_); } @@ -239,12 +293,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,24 +306,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.workstations.v1.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationClusterId() - .equals(other.getWorkstationClusterId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,137 +341,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.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(); @@ -439,13 +494,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance(); } @@ -460,13 +516,17 @@ public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -475,9 +535,10 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClu result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -488,46 +549,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -570,34 +635,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -607,22 +676,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -631,20 +705,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -652,28 +729,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -683,17 +771,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,18 +797,20 @@ public Builder setParentBytes( private java.lang.Object workstationClusterId_ = ""; /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -723,20 +819,21 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -744,28 +841,35 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -775,17 +879,21 @@ public Builder clearWorkstationClusterId() { return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -795,41 +903,61 @@ public Builder setWorkstationClusterIdBytes( private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -843,11 +971,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -861,17 +993,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -884,11 +1022,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.Workstat return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -901,61 +1043,82 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -963,29 +1126,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -994,9 +1163,9 @@ public Builder clearValidateOnly() { 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); } @@ -1006,41 +1175,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1223,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java index 20421ed95aec..6eee5e1235b3 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationClusterRequestOrBuilder extends +public interface CreateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString - getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString getWorkstationClusterIdBytes(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java index 9f108191266b..ff9ee0ddf593 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -26,38 +45,45 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +92,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. Parent resource name.
    * 
* - * 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 { @@ -97,14 +125,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** + * + * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ @java.lang.Override @@ -113,29 +145,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -146,11 +178,16 @@ public java.lang.String getWorkstationConfigId() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -158,38 +195,55 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -198,6 +252,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +264,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_); } @@ -239,12 +293,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,24 +306,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.workstations.v1.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationConfigId() - .equals(other.getWorkstationConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,137 +341,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.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(); @@ -439,13 +494,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance(); } @@ -460,13 +516,17 @@ public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -475,9 +535,10 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationCon result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -488,46 +549,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -570,34 +635,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -607,22 +676,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -631,20 +705,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -652,28 +729,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -683,17 +771,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,18 +797,20 @@ public Builder setParentBytes( private java.lang.Object workstationConfigId_ = ""; /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -723,20 +819,21 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -744,28 +841,35 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -775,17 +879,21 @@ public Builder clearWorkstationConfigId() { return this; } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -795,39 +903,58 @@ public Builder setWorkstationConfigIdBytes( private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { @@ -843,11 +970,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.Workstation return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -861,17 +992,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -884,11 +1021,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.Workstati return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -901,61 +1042,82 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -963,29 +1125,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -994,9 +1162,9 @@ public Builder clearValidateOnly() { 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); } @@ -1006,41 +1174,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1222,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java index c359f03cca7d..19b00fabc4e8 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationConfigRequestOrBuilder extends +public interface CreateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** + * + * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString - getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString getWorkstationConfigIdBytes(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java index 3000b28b434f..def7b917fa77 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -26,38 +44,45 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -97,14 +124,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ @java.lang.Override @@ -113,29 +144,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -146,11 +177,16 @@ public java.lang.String getWorkstationId() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.Workstation workstation_; /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -158,38 +194,54 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -198,6 +250,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +262,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_); } @@ -239,12 +291,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,24 +304,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.workstations.v1.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationRequest other = (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationRequest other = + (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationId() - .equals(other.getWorkstationId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationId().equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,137 +339,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.CreateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.CreateWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.CreateWorkstationRequest) com.google.cloud.workstations.v1.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationRequest.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(); @@ -439,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override @@ -460,8 +513,11 @@ public com.google.cloud.workstations.v1.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationRequest result = new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.CreateWorkstationRequest result = + new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -475,9 +531,8 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationReq result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -488,38 +543,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -527,7 +583,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -570,34 +627,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -607,22 +667,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -631,20 +696,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -652,28 +720,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -683,17 +762,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,18 +788,20 @@ public Builder setParentBytes( private java.lang.Object workstationId_ = ""; /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -723,20 +810,21 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -744,28 +832,35 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -775,17 +870,21 @@ public Builder clearWorkstationId() { return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -795,39 +894,58 @@ public Builder setWorkstationIdBytes( private com.google.cloud.workstations.v1.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { @@ -843,11 +961,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { @@ -861,17 +983,21 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstation_ != null + && workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -884,11 +1010,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation val return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -901,11 +1031,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -913,49 +1047,64 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilde return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -963,29 +1112,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -994,9 +1149,9 @@ public Builder clearValidateOnly() { 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); } @@ -1006,12 +1161,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationRequest) private static final com.google.cloud.workstations.v1.CreateWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationRequest(); } @@ -1020,27 +1175,27 @@ public static com.google.cloud.workstations.v1.CreateWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1210,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java index 253cde4428c8..e2f9a2d6c6b8 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationRequestOrBuilder extends +public interface CreateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ java.lang.String getWorkstationId(); /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString - getWorkstationIdBytes(); + com.google.protobuf.ByteString getWorkstationIdBytes(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java index c95610cdb243..c04d4189e529 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -26,38 +45,45 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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 @@ -66,29 +92,31 @@ 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. Name of the workstation cluster to delete.
    * 
* - * 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 { @@ -99,11 +127,14 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -112,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -129,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -163,6 +198,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -170,6 +207,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -178,6 +216,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +228,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_); } @@ -216,15 +254,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +270,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.workstations.v1.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,142 +296,147 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.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(); @@ -411,13 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance(); } @@ -432,13 +471,17 @@ public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -458,46 +501,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationClu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -540,32 +587,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -575,22 +627,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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; @@ -599,20 +656,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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 { @@ -620,28 +680,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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() { @@ -651,17 +722,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -669,13 +746,16 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -683,27 +763,33 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -715,19 +801,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -736,21 +824,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -758,30 +847,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -791,18 +887,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -810,8 +910,10 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -819,6 +921,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -826,6 +929,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -833,17 +938,20 @@ public boolean getForce() {
      * 
* * bool force = 4; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -851,6 +959,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -859,9 +968,9 @@ public Builder clearForce() { 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); } @@ -871,41 +980,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +1028,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java index afa20ef4a50e..b89875c2f05c 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,65 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationClusterRequestOrBuilder extends +public interface DeleteWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -67,6 +102,7 @@ public interface DeleteWorkstationClusterRequestOrBuilder extends
    * 
* * bool force = 4; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java similarity index 64% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java index bfc74fd93b2c..d99bdd6ad7ef 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -26,38 +45,45 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the config to delete.
    * 
* - * 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 @@ -66,29 +92,31 @@ 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. Name of the config to delete.
    * 
* - * 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 { @@ -99,12 +127,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +144,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +165,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -164,12 +199,15 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * If set, any Workstations in the config will also be deleted. Otherwise,
    * the request will work only if the config has no workstations.
    * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -178,6 +216,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +228,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_); } @@ -216,15 +254,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +270,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.workstations.v1.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,142 +296,147 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.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(); @@ -411,13 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance(); } @@ -432,13 +471,17 @@ public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -458,46 +501,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -540,32 +587,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -575,22 +627,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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; @@ -599,20 +656,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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 { @@ -620,28 +680,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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() { @@ -651,17 +722,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -669,14 +746,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -684,29 +764,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -718,19 +804,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -739,21 +827,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -761,30 +850,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -794,18 +890,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -813,14 +913,17 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -828,29 +931,35 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -859,9 +968,9 @@ public Builder clearForce() { 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); } @@ -871,41 +980,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +1028,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java index 9c9534314cec..7e00dc2a30f1 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,72 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationConfigRequestOrBuilder extends +public interface DeleteWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the config to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the config to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set, any Workstations in the config will also be deleted. Otherwise,
    * the request will work only if the config has no workstations.
    * 
* * bool force = 4; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java index 113e7f12e2c6..a52d9621f470 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,45 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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 @@ -66,29 +91,31 @@ 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. Name of the workstation to delete.
    * 
* - * 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -211,19 +244,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.workstations.v1.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationRequest other = + (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +269,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -248,129 +278,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.DeleteWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.DeleteWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.DeleteWorkstationRequest) com.google.cloud.workstations.v1.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationRequest.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(); @@ -382,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override @@ -403,8 +440,11 @@ public com.google.cloud.workstations.v1.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.DeleteWorkstationRequest result = + new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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; @@ -559,20 +610,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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 { @@ -580,28 +634,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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() { @@ -611,17 +676,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,14 +700,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -644,29 +718,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -678,19 +758,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -699,21 +781,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -721,30 +804,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -754,27 +844,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -784,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) private static final com.google.cloud.workstations.v1.DeleteWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(); } @@ -798,27 +892,27 @@ public static com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java index 8f37ed012b8f..1e7379366ff9 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationRequestOrBuilder extends +public interface DeleteWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java similarity index 70% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java index 85d7aba15809..ac4d6e0d560a 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; private java.lang.Object expiration_; + public enum ExpirationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; + private ExpirationCase(int value) { this.value = value; } @@ -72,25 +94,30 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: return EXPIRE_TIME; - case 3: return TTL; - case 0: return EXPIRATION_NOT_SET; - default: return null; + case 2: + return EXPIRE_TIME; + case 3: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -99,6 +126,7 @@ public int getNumber() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -106,6 +134,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -114,16 +144,19 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -136,13 +169,15 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-       return (com.google.protobuf.Timestamp) expiration_;
+      return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -150,6 +185,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -157,6 +193,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -164,16 +202,19 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -185,21 +226,27 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-       return (com.google.protobuf.Duration) expiration_;
+      return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int WORKSTATION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object workstation_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ @java.lang.Override @@ -208,30 +255,32 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -240,6 +289,7 @@ public java.lang.String getWorkstation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_); } @@ -275,12 +324,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_); } if (expirationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Duration) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) expiration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -290,24 +341,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.workstations.v1.GenerateAccessTokenRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; + com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = + (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 2: - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; break; case 3: - if (!getTtl() - .equals(other.getTtl())) return false; + if (!getTtl().equals(other.getTtl())) return false; break; case 0: default: @@ -343,129 +392,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.GenerateAccessTokenRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GenerateAccessTokenRequest) com.google.cloud.workstations.v1.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenRequest.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(); @@ -483,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override @@ -504,8 +560,11 @@ public com.google.cloud.workstations.v1.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = + new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -518,15 +577,14 @@ private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenR } } - private void buildPartialOneofs(com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && - expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && - ttlBuilder_ != null) { + if (expirationCase_ == 3 && ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -535,38 +593,39 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1.GenerateAccessT public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) other); } else { super.mergeFrom(other); return this; @@ -574,24 +633,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenRequest other) { - if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) + return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: { - break; - } + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -619,31 +682,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getTtlFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 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) { @@ -653,12 +716,12 @@ public Builder mergeFrom( } // finally return this; } + private int expirationCase_ = 0; private java.lang.Object expiration_; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public Builder clearExpiration() { @@ -671,8 +734,13 @@ public Builder clearExpiration() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -681,6 +749,7 @@ public Builder clearExpiration() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -688,6 +757,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -696,6 +767,7 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -713,6 +785,8 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -736,6 +810,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -745,8 +821,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -757,6 +832,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -768,10 +845,12 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2 &&
-            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 2
+            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -787,6 +866,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -813,6 +894,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -826,6 +909,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -847,6 +932,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -857,17 +944,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_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>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_,
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -876,8 +966,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        ttlBuilder_;
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -885,6 +980,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -892,6 +988,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -899,6 +997,7 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override @@ -916,6 +1015,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -938,6 +1039,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -946,8 +1049,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -958,6 +1060,8 @@ public Builder setTtl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -968,10 +1072,12 @@ public Builder setTtl(
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3 &&
-            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 3
+            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -987,6 +1093,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1012,6 +1120,8 @@ public Builder clearTtl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1024,6 +1134,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1044,6 +1156,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1053,17 +1167,20 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     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>
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_,
-                getParentForChildren(),
-                isClean());
+        ttlBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
@@ -1073,19 +1190,23 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
 
     private java.lang.Object workstation_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -1094,21 +1215,24 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -1116,30 +1240,41 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -1149,27 +1284,33 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000004; 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); } @@ -1179,12 +1320,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) private static final com.google.cloud.workstations.v1.GenerateAccessTokenRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(); } @@ -1193,27 +1334,27 @@ public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,6 +1369,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java index 997b9e83ce70..85bafe5a85b9 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface GenerateAccessTokenRequestOrBuilder extends +public interface GenerateAccessTokenRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -28,10 +49,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -44,6 +68,8 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -51,10 +77,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -62,10 +91,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -77,26 +109,36 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ java.lang.String getWorkstation(); /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - com.google.protobuf.ByteString - getWorkstationBytes(); + com.google.protobuf.ByteString getWorkstationBytes(); - public com.google.cloud.workstations.v1.GenerateAccessTokenRequest.ExpirationCase getExpirationCase(); + public com.google.cloud.workstations.v1.GenerateAccessTokenRequest.ExpirationCase + getExpirationCase(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java index 1c60602c8de0..19ce4547d04d 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -60,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string access_token = 1; + * * @return The accessToken. */ @java.lang.Override @@ -68,14 +91,15 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -84,16 +108,15 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -104,11 +127,14 @@ public java.lang.String getAccessToken() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -116,11 +142,14 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -128,6 +157,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Time at which the generated token will expire.
    * 
@@ -140,6 +171,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +183,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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -172,8 +203,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,19 +213,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.workstations.v1.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = + (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; - if (!getAccessToken() - .equals(other.getAccessToken())) return false; + if (!getAccessToken().equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -220,129 +249,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.GenerateAccessTokenResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GenerateAccessTokenResponse) com.google.cloud.workstations.v1.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenResponse.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(); @@ -357,13 +393,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -378,21 +415,23 @@ public com.google.cloud.workstations.v1.GenerateAccessTokenResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = + new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } } @@ -400,38 +439,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse) other); } else { super.mergeFrom(other); return this; @@ -439,7 +479,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenResponse other) { - if (other == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) + return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -474,24 +516,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -501,10 +544,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object accessToken_ = ""; /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -513,13 +559,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; + * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -528,6 +574,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -536,15 +584,14 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -552,6 +599,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -560,18 +609,22 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -580,6 +633,7 @@ public Builder setAccessToken(
      * 
* * string access_token = 1; + * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -589,6 +643,8 @@ public Builder clearAccessToken() { return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -597,12 +653,14 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; + * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -612,34 +670,47 @@ public Builder setAccessTokenBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -660,14 +731,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -678,6 +750,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -686,9 +760,9 @@ public Builder setExpireTime( */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -701,6 +775,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -718,6 +794,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -730,6 +808,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -740,11 +820,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -752,21 +835,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -776,12 +862,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(); } @@ -790,27 +877,27 @@ public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -825,6 +912,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java index d89ddcee2dca..f0a52a110743 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface GenerateAccessTokenResponseOrBuilder extends +public interface GenerateAccessTokenResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The accessToken. */ java.lang.String getAccessToken(); /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -28,30 +49,38 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString - getAccessTokenBytes(); + com.google.protobuf.ByteString getAccessTokenBytes(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java index 17a205fe875d..e25962d99562 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java @@ -1,62 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -65,29 +90,31 @@ 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. Name of the requested resource.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.workstations.v1.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) 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,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.GetWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GetWorkstationClusterRequest) com.google.cloud.workstations.v1.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationClusterRequest.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(); @@ -292,13 +326,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GetWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -313,13 +348,17 @@ public com.google.cloud.workstations.v1.GetWorkstationClusterRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,38 +369,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationCluste public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +409,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,22 +465,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -445,20 +494,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -466,28 +518,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -497,26 +560,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -526,12 +595,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(); } @@ -540,27 +610,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +645,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..93a8d0ee0209 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +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/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java index 4d2d3f7ff7f7..a2e478e1a73d 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java @@ -1,62 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -65,29 +90,31 @@ 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. Name of the requested resource.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.workstations.v1.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) 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,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.GetWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GetWorkstationConfigRequest) com.google.cloud.workstations.v1.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationConfigRequest.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(); @@ -292,13 +326,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GetWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -313,13 +348,17 @@ public com.google.cloud.workstations.v1.GetWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,38 +369,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationConfig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +409,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,22 +465,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -445,20 +494,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -466,28 +518,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -497,26 +560,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -526,12 +595,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(); } @@ -540,27 +610,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +645,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..245eb7e3d192 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +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/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java index 658238ad9f82..c0ddcac8f0ce 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java @@ -1,62 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationRequest) GetWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationRequest.class, + com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -65,29 +90,31 @@ 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. Name of the requested resource.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.workstations.v1.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationRequest other = (com.google.cloud.workstations.v1.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationRequest other = + (com.google.cloud.workstations.v1.GetWorkstationRequest) 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,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.GetWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GetWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.GetWorkstationRequest) com.google.cloud.workstations.v1.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationRequest.class, + com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationRequest.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(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.workstations.v1.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationRequest result = new com.google.cloud.workstations.v1.GetWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GetWorkstationRequest result = + new com.google.cloud.workstations.v1.GetWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationRequest) private static final com.google.cloud.workstations.v1.GetWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..e4f6ec43dcd2 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java @@ -0,0 +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/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java index 0b6c1645c78d..d87a97a8fa38 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +46,45 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +93,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +164,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +207,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_); } @@ -194,8 +230,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_); @@ -208,19 +243,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.workstations.v1.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +277,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest + 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.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(); @@ -378,14 +420,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + .getDefaultInstance(); } @java.lang.Override @@ -399,13 +443,17 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buil @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,46 +470,51 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +554,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +588,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +617,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +641,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +683,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +707,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +724,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +762,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +784,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +806,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +844,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +877,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +925,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java index 204628d6fa82..3c8b88d733bf 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationConfigsRequestOrBuilder extends +public interface ListUsableWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java index f162138a9676..5ba433b83303 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +47,37 @@ private ListUsableWorkstationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
@@ -61,10 +85,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -72,11 +99,13 @@ public java.util.List getWor * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -88,6 +117,8 @@ public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
@@ -99,6 +130,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
@@ -112,15 +145,19 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +166,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +198,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +245,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { for (int i = 0; i < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -245,8 +293,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +315,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.workstations.v1.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +353,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse + 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.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(); @@ -448,14 +503,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -469,14 +526,18 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse bui @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -493,7 +554,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsa result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +566,51 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + .getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -562,9 +629,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationC workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -611,36 +679,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,28 +722,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -679,11 +762,14 @@ public java.util.List getWor } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -693,11 +779,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -707,11 +796,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -728,11 +820,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -746,11 +841,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { @@ -766,11 +864,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -787,11 +888,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -805,11 +909,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -823,18 +930,20 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -842,11 +951,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -859,11 +971,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -876,39 +991,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1041,62 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1108,21 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstation private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1131,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1154,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1194,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1217,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1270,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1363,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1396,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1444,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java index edba880d6698..c01b3f4a106b 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationConfigsResponseOrBuilder extends +public interface ListUsableWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List - getWorkstationConfigsList(); + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
@@ -25,6 +44,8 @@ public interface ListUsableWorkstationConfigsResponseOrBuilder extends */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
@@ -33,15 +54,19 @@ public interface ListUsableWorkstationConfigsResponseOrBuilder extends */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
@@ -52,65 +77,80 @@ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfig int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java index eb0953cdfeb6..937491546d73 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +142,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +162,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,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_); } @@ -194,8 +228,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_); @@ -208,19 +241,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.workstations.v1.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = + (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +275,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.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(); @@ -378,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance(); } @@ -399,13 +438,17 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = + new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,38 +465,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) other); } else { super.mergeFrom(other); return this; @@ -461,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +610,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +634,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +676,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +700,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +717,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +755,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +777,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +799,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +837,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +870,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +918,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java index 0513ee615608..c845cc727bcb 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationsRequestOrBuilder extends +public interface ListUsableWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java similarity index 70% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java index d9525b052c5c..2c8e19b9f509 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +46,37 @@ private ListUsableWorkstationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -65,6 +88,8 @@ public java.util.List getWorkstati return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -72,11 +97,13 @@ public java.util.List getWorkstati * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -88,6 +115,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -99,6 +128,8 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -106,21 +137,24 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index) { return workstations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +163,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +242,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +270,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -245,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +311,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.workstations.v1.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = + (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +349,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.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,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance(); } @@ -469,14 +519,18 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = + new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -493,7 +547,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsa result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +559,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) + return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -562,9 +621,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstations workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -611,36 +671,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,21 +713,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -679,6 +750,8 @@ public java.util.List getWorkstati } } /** + * + * *
      * The requested workstations.
      * 
@@ -693,6 +766,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -707,14 +782,15 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder setWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +804,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -746,6 +824,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -766,14 +846,15 @@ public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation valu return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder addWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +868,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -805,6 +888,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -823,6 +908,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -833,8 +920,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -842,6 +928,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -859,6 +947,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -876,17 +966,20 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( - int index) { + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder(int index) { return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -896,19 +989,22 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuild public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1012,8 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu } } /** + * + * *
      * The requested workstations.
      * 
@@ -923,42 +1021,48 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( - int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder(int index) { + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -966,19 +1070,21 @@ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuild private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1093,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1116,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1156,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1179,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1232,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1325,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1358,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1406,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java index cd01e585b84e..75a777193018 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationsResponseOrBuilder extends +public interface ListUsableWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java index e77c16ef375a..c2adf13ea312 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +45,45 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +92,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +127,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +143,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +163,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +194,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -194,8 +229,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_); @@ -208,19 +242,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.workstations.v1.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = + (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +276,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationClustersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationClustersRequest) com.google.cloud.workstations.v1.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersRequest.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(); @@ -378,13 +417,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance(); } @@ -399,13 +439,17 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = + new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,46 +466,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClust public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListWorkstationClustersRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { + if (other + == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +549,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +583,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +612,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +636,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +678,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +702,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +719,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +757,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +779,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +801,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +839,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +872,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +920,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java index b43b33e892b1..ef2984592380 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationClustersRequestOrBuilder extends +public interface ListWorkstationClustersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java index 3d67cb482c29..46ec695c99bd 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,100 +46,122 @@ private ListWorkstationClustersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstationClusters_; /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +170,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +202,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +249,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +277,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 < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -245,8 +297,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationClusters_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,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.workstations.v1.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = + (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList() - .equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +357,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationClustersResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationClustersResponse) com.google.cloud.workstations.v1.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersResponse.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,13 +505,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance(); } @@ -469,14 +527,18 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersResponse build() @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = + new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -493,7 +555,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWor result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +567,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClust public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListWorkstationClustersResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { + if (other + == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) + return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -562,9 +629,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationCluster workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationClustersFieldBuilder() : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationClustersFieldBuilder() + : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -611,36 +679,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,28 +722,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationClusters_ = - java.util.Collections.emptyList(); + private java.util.List + workstationClusters_ = java.util.Collections.emptyList(); + private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = new java.util.ArrayList(workstationClusters_); + workstationClusters_ = + new java.util.ArrayList( + workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClustersBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + workstationClustersBuilder_; /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -679,11 +762,14 @@ public java.util.List getWo } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -693,11 +779,14 @@ public int getWorkstationClustersCount() { } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -707,11 +796,14 @@ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster value) { @@ -728,11 +820,14 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -746,13 +841,17 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public Builder addWorkstationClusters(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder addWorkstationClusters( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,11 +865,14 @@ public Builder addWorkstationClusters(com.google.cloud.workstations.v1.Workstati return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster value) { @@ -787,11 +889,14 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -805,11 +910,14 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -823,18 +931,20 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addAllWorkstationClusters( java.lang.Iterable values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -842,11 +952,14 @@ public Builder addAllWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -859,11 +972,14 @@ public Builder clearWorkstationClusters() { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -876,39 +992,49 @@ public Builder removeWorkstationClusters(int index) { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClustersBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + getWorkstationClustersBuilder(int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); } else { + return workstationClusters_.get(index); + } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersOrBuilderList() { + public java.util.List + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1042,62 @@ public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstati } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder( - int index) { - return getWorkstationClustersFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + addWorkstationClustersBuilder(int index) { + return getWorkstationClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1109,21 @@ public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstatio private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1132,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1155,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1195,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1218,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1271,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1364,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1397,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1445,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java index 532e1a47c5b1..8e1ed90f4d08 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java @@ -1,116 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationClustersResponseOrBuilder extends +public interface ListWorkstationClustersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List - getWorkstationClustersList(); + java.util.List getWorkstationClustersList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ int getWorkstationClustersCount(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java index feea995d32c2..15c580581228 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +142,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +162,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,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_); } @@ -194,8 +228,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_); @@ -208,19 +241,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.workstations.v1.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +275,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.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(); @@ -378,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance(); } @@ -399,13 +438,17 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,38 +465,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; @@ -461,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +610,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +634,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +676,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +700,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +717,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +755,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +777,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +799,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +837,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +870,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +918,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java index b2435a60844e..802b39347fee 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationConfigsRequestOrBuilder extends +public interface ListWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java similarity index 69% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java index 4dbdf624f582..d83b1de1a792 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +46,37 @@ private ListWorkstationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
@@ -61,10 +84,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -72,11 +98,13 @@ public java.util.List getWor * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -88,6 +116,8 @@ public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
@@ -99,6 +129,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
@@ -112,15 +144,19 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +165,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +197,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +244,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { for (int i = 0; i < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -245,8 +292,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +314,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.workstations.v1.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +352,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.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,13 +500,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance(); } @@ -469,14 +522,18 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -493,7 +550,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWor result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +562,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) + return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -562,9 +624,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigs workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -611,36 +674,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,28 +717,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -679,11 +757,14 @@ public java.util.List getWor } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -693,11 +774,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -707,11 +791,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -728,11 +815,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -746,11 +836,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { @@ -766,11 +859,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -787,11 +883,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -805,11 +904,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -823,18 +925,20 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -842,11 +946,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -859,11 +966,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -876,39 +986,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1036,62 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1103,21 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstation private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1126,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1149,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1189,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1212,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1265,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1358,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1391,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1439,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java index 2aebefd737b5..062db7d71c96 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationConfigsResponseOrBuilder extends +public interface ListWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List - getWorkstationConfigsList(); + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkstationConfigsResponseOrBuilder extends */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
@@ -33,15 +54,19 @@ public interface ListWorkstationConfigsResponseOrBuilder extends */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
@@ -52,65 +77,80 @@ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfig int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java index fecd741a5499..c2d7ac322b98 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +142,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +162,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,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_); } @@ -194,8 +228,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_); @@ -208,19 +241,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.workstations.v1.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationsRequest other = (com.google.cloud.workstations.v1.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationsRequest other = + (com.google.cloud.workstations.v1.ListWorkstationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +275,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationsRequest) com.google.cloud.workstations.v1.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationsRequest.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(); @@ -378,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override @@ -399,8 +437,11 @@ public com.google.cloud.workstations.v1.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationsRequest result = new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListWorkstationsRequest result = + new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -422,38 +463,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest) other); } else { super.mergeFrom(other); return this; @@ -461,7 +503,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +578,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +607,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +631,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +673,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +697,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +714,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +752,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +774,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +796,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +834,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,12 +867,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsRequest) private static final com.google.cloud.workstations.v1.ListWorkstationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsRequest(); } @@ -786,27 +881,27 @@ public static com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -821,6 +916,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java index 19481ea97967..f953c48bae34 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationsRequestOrBuilder extends +public interface ListWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java similarity index 72% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java index 0be2dd59d8a2..5a649bb013fb 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListWorkstationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -65,6 +87,8 @@ public java.util.List getWorkstati return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -72,11 +96,13 @@ public java.util.List getWorkstati * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -88,6 +114,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index) { return workstations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +241,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +269,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,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.workstations.v1.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationsResponse other = (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationsResponse other = + (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.ListWorkstationsResponse) com.google.cloud.workstations.v1.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationsResponse.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 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override @@ -469,14 +517,18 @@ public com.google.cloud.workstations.v1.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationsResponse result = new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1.ListWorkstationsResponse result = + new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -504,38 +556,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsResp public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) + return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -562,9 +616,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRespon workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -611,36 +666,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,21 +708,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -679,6 +745,8 @@ public java.util.List getWorkstati } } /** + * + * *
      * The requested workstations.
      * 
@@ -693,6 +761,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -707,14 +777,15 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder setWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +799,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -746,6 +819,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -766,14 +841,15 @@ public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation valu return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder addWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,6 +863,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -805,6 +883,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -823,6 +903,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -833,8 +915,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -842,6 +923,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -859,6 +942,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -876,17 +961,20 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( - int index) { + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder(int index) { return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -896,19 +984,22 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuild public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1007,8 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu } } /** + * + * *
      * The requested workstations.
      * 
@@ -923,42 +1016,48 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( - int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder(int index) { + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -966,19 +1065,21 @@ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuild private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1088,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1111,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1151,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1174,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1227,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1320,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,12 +1353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsResponse) private static final com.google.cloud.workstations.v1.ListWorkstationsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsResponse(); } @@ -1226,27 +1367,27 @@ public static com.google.cloud.workstations.v1.ListWorkstationsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +1402,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java index 27db2718155e..9a77d1ef2fef 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationsResponseOrBuilder extends +public interface ListWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java index dde0a919ed75..0b33e1895039 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1.OperationMetadata.class, + com.google.cloud.workstations.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time that 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 @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time that 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 @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time that 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() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,12 +324,15 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -285,14 +341,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -301,29 +361,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -332,6 +392,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,8 +404,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()); } @@ -376,12 +436,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -393,8 +451,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -407,33 +464,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.workstations.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1.OperationMetadata other = (com.google.cloud.workstations.v1.OperationMetadata) obj; + com.google.cloud.workstations.v1.OperationMetadata other = + (com.google.cloud.workstations.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,8 +511,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -470,129 +520,135 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.workstations.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.OperationMetadata) com.google.cloud.workstations.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1.OperationMetadata.class, + com.google.cloud.workstations.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1.OperationMetadata.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(); @@ -616,9 +672,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -637,8 +693,11 @@ public com.google.cloud.workstations.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1.OperationMetadata result = new com.google.cloud.workstations.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.OperationMetadata result = + new com.google.cloud.workstations.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -646,14 +705,10 @@ public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -676,38 +731,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -715,7 +771,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -771,51 +828,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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) { @@ -825,43 +886,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. Time that 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. Time that 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. Time that 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) { @@ -877,14 +958,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that 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(); } else { @@ -895,17 +979,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time that 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 (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -918,11 +1006,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that 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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -935,11 +1027,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time that 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() { bitField0_ |= 0x00000001; @@ -947,36 +1043,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that 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. Time that 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_; @@ -984,24 +1092,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1012,11 +1131,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1032,14 +1154,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1050,17 +1174,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1073,11 +1200,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1090,11 +1220,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1102,36 +1235,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.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> 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_; @@ -1139,18 +1280,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1159,20 +1302,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1180,28 +1324,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1211,17 +1362,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1231,18 +1386,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1251,20 +1408,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1272,28 +1430,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1303,17 +1468,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1323,18 +1492,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1343,20 +1514,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1364,28 +1536,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1395,17 +1574,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1413,14 +1596,17 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1428,29 +1614,35 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1462,18 +1654,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1482,20 +1676,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1503,28 +1698,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1534,26 +1736,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1563,12 +1769,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.OperationMetadata) private static final com.google.cloud.workstations.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.OperationMetadata(); } @@ -1577,27 +1783,27 @@ public static com.google.cloud.workstations.v1.OperationMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1818,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java index ecae7415ff41..dd07558e3880 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java @@ -1,154 +1,215 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Time that 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. Time that 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. Time that 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(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java index 9bcc35830345..55f8d3dabd58 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StartWorkstationRequest) StartWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,45 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StartWorkstationRequest.class, + com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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 @@ -66,29 +91,31 @@ 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. Name of the workstation to start.
    * 
* - * 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -211,19 +244,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.workstations.v1.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.StartWorkstationRequest other = (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1.StartWorkstationRequest other = + (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +269,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -248,129 +278,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.StartWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.StartWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.StartWorkstationRequest) com.google.cloud.workstations.v1.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StartWorkstationRequest.class, + com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.StartWorkstationRequest.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(); @@ -382,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override @@ -403,8 +440,11 @@ public com.google.cloud.workstations.v1.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.StartWorkstationRequest result = new com.google.cloud.workstations.v1.StartWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.StartWorkstationRequest result = + new com.google.cloud.workstations.v1.StartWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.StartWorkstationRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.StartWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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; @@ -559,20 +610,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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 { @@ -580,28 +634,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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() { @@ -611,17 +676,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,14 +700,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -644,29 +718,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -678,19 +758,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -699,21 +781,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -721,30 +804,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -754,27 +844,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -784,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StartWorkstationRequest) private static final com.google.cloud.workstations.v1.StartWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StartWorkstationRequest(); } @@ -798,27 +892,27 @@ public static com.google.cloud.workstations.v1.StartWorkstationRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java index 10183779c369..a3b902a3f807 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface StartWorkstationRequestOrBuilder extends +public interface StartWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java index 3d3b1ed1ac80..8fe323e09e45 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StopWorkstationRequest) StopWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,45 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StopWorkstationRequest.class, + com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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 @@ -66,29 +91,31 @@ 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. Name of the workstation to stop.
    * 
* - * 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -211,19 +244,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.workstations.v1.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.StopWorkstationRequest other = (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1.StopWorkstationRequest other = + (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +269,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -248,129 +278,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.StopWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.StopWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.StopWorkstationRequest) com.google.cloud.workstations.v1.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StopWorkstationRequest.class, + com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.StopWorkstationRequest.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(); @@ -382,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -403,8 +440,11 @@ public com.google.cloud.workstations.v1.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.StopWorkstationRequest result = new com.google.cloud.workstations.v1.StopWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.StopWorkstationRequest result = + new com.google.cloud.workstations.v1.StopWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.StopWorkstationReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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; @@ -559,20 +610,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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 { @@ -580,28 +634,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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() { @@ -611,17 +676,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,14 +700,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -644,29 +718,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -678,19 +758,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -699,21 +781,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -721,30 +804,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -754,27 +844,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -784,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StopWorkstationRequest) private static final com.google.cloud.workstations.v1.StopWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StopWorkstationRequest(); } @@ -798,27 +892,27 @@ public static com.google.cloud.workstations.v1.StopWorkstationRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java index 149be0ed836c..634d987ede59 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface StopWorkstationRequestOrBuilder extends +public interface StopWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java index 022eadef1783..5a447fed943c 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java @@ -1,60 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationClusterRequest() { - } + + private UpdateWorkstationClusterRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -62,38 +86,56 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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 @@ -101,12 +143,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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 @@ -114,12 +160,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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() { @@ -129,12 +178,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +197,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set, and the workstation cluster is not found, a new workstation
    * cluster will be created. In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -159,6 +214,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +226,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -194,20 +249,16 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +268,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.workstations.v1.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,140 +306,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.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(); @@ -412,13 +465,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance(); } @@ -433,23 +487,26 @@ public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -463,46 +520,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationClu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) + return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -541,36 +602,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -580,45 +643,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,11 +716,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -650,17 +738,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -673,11 +767,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.Workstat return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -690,48 +788,66 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -739,42 +855,58 @@ public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstati 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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) { @@ -790,15 +922,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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(); } else { @@ -809,18 +943,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -833,12 +970,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -851,12 +991,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -864,51 +1007,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -916,29 +1072,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -948,14 +1110,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -963,29 +1128,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -994,9 +1165,9 @@ public Builder clearAllowMissing() { 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); } @@ -1006,41 +1177,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1225,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java index d76f0de32bd0..a7e22f0f53d3 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,87 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationClusterRequestOrBuilder extends +public interface UpdateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, and the workstation cluster is not found, a new workstation
    * cluster will be created. In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java index 716709e643da..bbd5bc24b506 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java @@ -1,60 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationConfigRequest() { - } + + private UpdateWorkstationConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -62,37 +86,55 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -100,11 +142,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -112,11 +158,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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() { @@ -126,12 +175,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -142,12 +194,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -156,6 +211,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +223,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -191,20 +246,16 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,27 +265,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.workstations.v1.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,140 +303,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.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,13 +462,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance(); } @@ -430,23 +484,26 @@ public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -460,46 +517,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) + return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -538,36 +599,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -577,43 +640,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { @@ -629,11 +712,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.Workstation return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -647,17 +734,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -670,11 +763,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.Workstati return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -687,48 +784,66 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -736,39 +851,55 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio 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. Mask specifying which fields in the config should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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) { @@ -784,14 +915,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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(); } else { @@ -802,17 +935,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -825,11 +961,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -842,11 +981,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -854,49 +996,62 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -904,29 +1059,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -936,14 +1097,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -951,29 +1115,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -982,9 +1152,9 @@ public Builder clearAllowMissing() { 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); } @@ -994,41 +1164,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,9 +1212,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java index 7c8a310bd78e..8d1d7e5e66b9 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,84 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationConfigRequestOrBuilder extends +public interface UpdateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java similarity index 64% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java index 3cc503a76edb..398bd92dc877 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java @@ -1,60 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationRequest() { - } + + private UpdateWorkstationRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.Workstation workstation_; /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -62,37 +85,54 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -100,11 +140,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -112,11 +156,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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() { @@ -126,12 +173,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -142,12 +192,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -156,6 +209,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +221,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -191,20 +244,16 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,27 +263,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.workstations.v1.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationRequest other = + (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,140 +301,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.UpdateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.UpdateWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.UpdateWorkstationRequest) com.google.cloud.workstations.v1.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationRequest.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 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override @@ -430,8 +481,11 @@ public com.google.cloud.workstations.v1.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.UpdateWorkstationRequest result = + new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -439,14 +493,11 @@ public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -460,38 +511,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) + return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -538,36 +591,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -577,43 +631,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { @@ -629,11 +703,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { @@ -647,17 +725,21 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstation_ != null + && workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -670,11 +752,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation val return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -687,11 +773,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -699,36 +789,48 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilde return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; @@ -736,39 +838,55 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBui 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. Mask specifying which fields in the config should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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) { @@ -784,14 +902,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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(); } else { @@ -802,17 +922,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -825,11 +948,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -842,11 +968,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -854,49 +983,62 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -904,29 +1046,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -936,14 +1084,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -951,29 +1102,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -982,9 +1139,9 @@ public Builder clearAllowMissing() { 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); } @@ -994,12 +1151,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) private static final com.google.cloud.workstations.v1.UpdateWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(); } @@ -1008,27 +1165,27 @@ public static com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1043,6 +1200,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java index b43ac0bc6628..06605e993866 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java @@ -1,84 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationRequestOrBuilder extends +public interface UpdateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java similarity index 65% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java index 961bc92e88fb..db3a51d15011 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.Workstation} */ -public final class Workstation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Workstation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.Workstation) WorkstationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Workstation() { name_ = ""; displayName_ = ""; @@ -30,53 +48,56 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Workstation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_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 5: return internalGetAnnotations(); case 13: 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); + com.google.cloud.workstations.v1.Workstation.class, + com.google.cloud.workstations.v1.Workstation.Builder.class); } /** + * + * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1.Workstation.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Do not use.
      * 
@@ -85,6 +106,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -94,6 +117,8 @@ public enum State
      */
     STATE_STARTING(1),
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -102,6 +127,8 @@ public enum State */ STATE_RUNNING(2), /** + * + * *
      * The workstation is being stopped.
      * 
@@ -110,6 +137,8 @@ public enum State */ STATE_STOPPING(3), /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -122,6 +151,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -130,6 +161,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -139,6 +172,8 @@ public enum State
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -147,6 +182,8 @@ public enum State */ public static final int STATE_RUNNING_VALUE = 2; /** + * + * *
      * The workstation is being stopped.
      * 
@@ -155,6 +192,8 @@ public enum State */ public static final int STATE_STOPPING_VALUE = 3; /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -164,7 +203,6 @@ public enum State
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -189,51 +227,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return STATE_STARTING;
-        case 2: return STATE_RUNNING;
-        case 3: return STATE_STOPPING;
-        case 4: return STATE_STOPPED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return STATE_STARTING;
+        case 2:
+          return STATE_RUNNING;
+        case 3:
+          return STATE_STOPPING;
+        case 4:
+          return STATE_STOPPED;
+        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<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.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.workstations.v1.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -251,14 +291,18 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -267,29 +311,29 @@ 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; } } /** + * + * *
    * Full name of this resource.
    * 
* * 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 { @@ -298,14 +342,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -314,29 +362,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; } } /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @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 { @@ -345,14 +393,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -361,29 +413,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -394,12 +446,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -408,32 +463,35 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -441,20 +499,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -466,6 +525,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -473,17 +534,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-specified annotations.
    * 
@@ -491,11 +554,11 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -503,32 +566,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 13; + 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -537,20 +602,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 13;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -563,6 +629,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -571,17 +639,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -590,11 +660,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 13;
    */
   @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();
     }
@@ -604,11 +674,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -616,11 +690,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -628,11 +706,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -642,11 +723,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -654,11 +739,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -666,11 +755,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -680,11 +772,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -692,11 +788,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -704,11 +804,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -716,15 +819,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ @java.lang.Override @@ -733,30 +840,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -767,33 +874,51 @@ public java.lang.String getEtag() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { - com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation.State getState() { + com.google.cloud.workstations.v1.Workstation.State result = + com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED + : result; } public static final int HOST_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -803,6 +928,7 @@ public java.lang.String getEtag() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -811,14 +937,15 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -828,16 +955,15 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -846,6 +972,7 @@ public java.lang.String getHost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -857,8 +984,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_); } @@ -871,12 +997,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -889,18 +1011,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 13); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); getUnknownFields().writeTo(output); } @@ -920,50 +1039,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + if (state_ + != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_); } - 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(13, 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(13, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -973,45 +1088,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.workstations.v1.Workstation)) { return super.equals(obj); } - com.google.cloud.workstations.v1.Workstation other = (com.google.cloud.workstations.v1.Workstation) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.Workstation other = + (com.google.cloud.workstations.v1.Workstation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (state_ != other.state_) return false; - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1030,8 +1135,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -1063,156 +1167,160 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.Workstation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workstations.v1.Workstation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.Workstation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.Workstation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.Workstation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.Workstation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.Workstation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.Workstation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.Workstation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.Workstation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.Workstation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.Workstation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.workstations.v1.Workstation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.Workstation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.Workstation) com.google.cloud.workstations.v1.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: 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 5: return internalGetMutableAnnotations(); case 13: 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); + com.google.cloud.workstations.v1.Workstation.class, + com.google.cloud.workstations.v1.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1.Workstation.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(); @@ -1245,9 +1353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @java.lang.Override @@ -1266,8 +1374,11 @@ public com.google.cloud.workstations.v1.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1.Workstation buildPartial() { - com.google.cloud.workstations.v1.Workstation result = new com.google.cloud.workstations.v1.Workstation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.Workstation result = + new com.google.cloud.workstations.v1.Workstation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1295,19 +1406,13 @@ private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.etag_ = etag_; @@ -1324,38 +1429,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1.Workstation)other); + return mergeFrom((com.google.cloud.workstations.v1.Workstation) other); } else { super.mergeFrom(other); return this; @@ -1382,11 +1488,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.Workstation other) { if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1436,86 +1540,97 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 80: { - state_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 80 - case 90: { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 90 - case 106: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 80 + case 90: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + 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) { @@ -1525,22 +1640,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Full name of this resource.
      * 
* * 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; @@ -1549,20 +1667,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * 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 { @@ -1570,28 +1689,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1601,17 +1727,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1621,18 +1751,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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; @@ -1641,20 +1773,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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 { @@ -1662,28 +1795,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1693,17 +1833,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1713,18 +1857,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1733,20 +1879,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1754,28 +1901,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -1785,17 +1939,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -1803,14 +1961,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1818,29 +1979,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -1850,8 +2017,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1860,11 +2027,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1873,10 +2041,13 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1884,20 +2055,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1909,6 +2081,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1916,17 +2090,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1934,92 +2110,92 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -2028,10 +2204,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2040,20 +2219,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 13;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2066,6 +2246,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2074,17 +2256,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2093,23 +2277,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 13;
      */
     @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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2117,23 +2303,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2141,17 +2326,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 13;
      */
-    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"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2159,49 +2347,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 13;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2217,14 +2422,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -2235,17 +2443,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2258,11 +2470,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2275,11 +2491,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2287,36 +2507,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -2324,39 +2556,58 @@ 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_; /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2372,14 +2623,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2390,17 +2644,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2413,11 +2671,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2430,11 +2692,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2442,36 +2708,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -2479,39 +2757,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2527,14 +2824,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2545,17 +2845,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2568,11 +2872,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2585,11 +2893,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -2597,36 +2909,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -2634,19 +2958,21 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2655,21 +2981,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -2677,30 +3004,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2710,18 +3044,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -2731,22 +3069,33 @@ public Builder setEtagBytes( private int state_ = 0; /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2757,24 +3106,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { - com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; + com.google.cloud.workstations.v1.Workstation.State result = + com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2788,11 +3150,16 @@ public Builder setState(com.google.cloud.workstations.v1.Workstation.State value return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2804,6 +3171,8 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2813,13 +3182,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -2828,6 +3197,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2837,15 +3208,14 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -2853,6 +3223,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2862,18 +3234,22 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } host_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2883,6 +3259,7 @@ public Builder setHost(
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHost() { @@ -2892,6 +3269,8 @@ public Builder clearHost() { return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2901,21 +3280,23 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000800; 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); } @@ -2925,12 +3306,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.Workstation) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.Workstation) private static final com.google.cloud.workstations.v1.Workstation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.Workstation(); } @@ -2939,27 +3320,27 @@ public static com.google.cloud.workstations.v1.Workstation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workstation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2974,6 +3355,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.Workstation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java similarity index 67% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java index 11099e2beac2..5a82ab3febfe 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * A grouping of workstation configurations and the associated workstations
  *  in that region.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster}
  */
-public final class WorkstationCluster extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster)
     WorkstationClusterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -32,58 +50,64 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationCluster_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 5:
         return internalGetAnnotations();
       case 15:
         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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1.WorkstationCluster.class,
+            com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder extends
+  public interface PrivateClusterConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -93,10 +117,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -106,12 +133,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString - getClusterHostnameBytes(); + com.google.protobuf.ByteString getClusterHostnameBytes(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -121,10 +150,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -134,12 +166,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString - getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString getServiceAttachmentUriBytes(); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -147,11 +181,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @return A list containing the allowedProjects. */ - java.util.List - getAllowedProjectsList(); + java.util.List getAllowedProjectsList(); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -159,10 +195,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -170,11 +209,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -182,28 +224,31 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString - getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString getAllowedProjectsBytes(int index); } /** + * + * *
    * Configuration options for private clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; @@ -212,37 +257,42 @@ private PrivateClusterConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + .class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** + * + * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -251,9 +301,12 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -263,6 +316,7 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ @java.lang.Override @@ -271,14 +325,15 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -288,16 +343,15 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -306,9 +360,12 @@ public java.lang.String getClusterHostname() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -318,6 +375,7 @@ public java.lang.String getClusterHostname() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -326,14 +384,15 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -343,16 +402,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -361,9 +419,12 @@ public java.lang.String getServiceAttachmentUri() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowedProjects_; /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -371,13 +432,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4; + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { return allowedProjects_; } /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -385,12 +448,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4; + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -398,6 +464,7 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -405,6 +472,8 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -412,15 +481,16 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,8 +502,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -456,8 +525,7 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -481,21 +549,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.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj + instanceof com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = + (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() - != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname() - .equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri() - .equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList() - .equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname().equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -508,8 +574,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -523,88 +588,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -614,39 +692,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration options for private clusters.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + .class); } - // Construct using com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.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(); @@ -660,19 +742,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = buildPartial(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -680,15 +765,20 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig buildPartial() { - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + buildPartial() { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = + new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { if (((bitField0_ & 0x00000008) != 0)) { allowedProjects_ = allowedProjects_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); @@ -696,7 +786,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.Worksta result.allowedProjects_ = allowedProjects_; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -713,46 +804,54 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster.P public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)other); + if (other + instanceof com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { - if (other == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { + if (other + == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -802,33 +901,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + 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) { @@ -838,15 +942,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enablePrivateEndpoint_ ; + private boolean enablePrivateEndpoint_; /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -854,27 +962,33 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ public Builder setEnablePrivateEndpoint(boolean value) { - + enablePrivateEndpoint_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -886,6 +1000,8 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -895,13 +1011,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -910,6 +1026,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -919,15 +1037,14 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -935,6 +1052,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -944,18 +1063,22 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -965,6 +1088,7 @@ public Builder setClusterHostname(
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -974,6 +1098,8 @@ public Builder clearClusterHostname() { return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -983,12 +1109,14 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -998,6 +1126,8 @@ public Builder setClusterHostnameBytes( private java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1006,14 +1136,15 @@ public Builder setClusterHostnameBytes(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1022,6 +1153,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1030,16 +1163,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1047,6 +1180,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1055,19 +1190,24 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1076,7 +1216,9 @@ public Builder setServiceAttachmentUri(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1086,6 +1228,8 @@ public Builder clearServiceAttachmentUri() { return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1094,13 +1238,16 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1108,14 +1255,18 @@ public Builder setServiceAttachmentUriBytes( return this; } - private com.google.protobuf.LazyStringList allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedProjects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedProjectsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1123,13 +1274,15 @@ private void ensureAllowedProjectsIsMutable() {
        * 
* * repeated string allowed_projects = 4; + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { return allowedProjects_.getUnmodifiableView(); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1137,12 +1290,15 @@ private void ensureAllowedProjectsIsMutable() {
        * 
* * repeated string allowed_projects = 4; + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1150,6 +1306,7 @@ public int getAllowedProjectsCount() {
        * 
* * repeated string allowed_projects = 4; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1157,6 +1314,8 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1164,14 +1323,16 @@ public java.lang.String getAllowedProjects(int index) {
        * 
* * repeated string allowed_projects = 4; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1179,19 +1340,23 @@ public java.lang.String getAllowedProjects(int index) {
        * 
* * repeated string allowed_projects = 4; + * * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); onChanged(); return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1199,18 +1364,22 @@ public Builder setAllowedProjects(
        * 
* * repeated string allowed_projects = 4; + * * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); onChanged(); return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1218,18 +1387,19 @@ public Builder addAllowedProjects(
        * 
* * repeated string allowed_projects = 4; + * * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects( - java.lang.Iterable values) { + public Builder addAllAllowedProjects(java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); onChanged(); return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1237,6 +1407,7 @@ public Builder addAllAllowedProjects(
        * 
* * repeated string allowed_projects = 4; + * * @return This builder for chaining. */ public Builder clearAllowedProjects() { @@ -1246,6 +1417,8 @@ public Builder clearAllowedProjects() { return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1253,18 +1426,21 @@ public Builder clearAllowedProjects() {
        * 
* * repeated string allowed_projects = 4; + * * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1277,41 +1453,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1323,21 +1503,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1346,29 +1530,29 @@ 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; } } /** + * + * *
    * Full name of this resource.
    * 
* * 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 { @@ -1377,14 +1561,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1393,29 +1581,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; } } /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @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 { @@ -1424,14 +1612,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -1440,29 +1632,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1473,12 +1665,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1487,32 +1682,35 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1520,20 +1718,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1545,6 +1744,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1552,17 +1753,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1570,11 +1773,11 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1582,32 +1785,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 15; + 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1616,20 +1821,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 15;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1642,6 +1848,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1650,17 +1858,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1669,11 +1879,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 15;
    */
   @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();
     }
@@ -1683,11 +1893,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1695,11 +1909,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1707,11 +1925,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1721,11 +1942,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1733,11 +1958,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1745,11 +1974,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1759,11 +1991,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1771,11 +2007,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1783,11 +2023,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1795,15 +2038,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ @java.lang.Override @@ -1812,30 +2059,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1844,15 +2091,19 @@ public java.lang.String getEtag() { } public static final int NETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ @java.lang.Override @@ -1861,30 +2112,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1893,9 +2144,12 @@ public java.lang.String getNetwork() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -1903,6 +2157,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ @java.lang.Override @@ -1911,14 +2166,15 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -1926,16 +2182,15 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -1944,13 +2199,19 @@ public java.lang.String getSubnetwork() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -1958,32 +2219,51 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -1991,6 +2271,7 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigO
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -1999,67 +2280,82 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2071,8 +2367,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_); } @@ -2085,12 +2380,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2118,12 +2409,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 15); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); getUnknownFields().writeTo(output); } @@ -2143,30 +2430,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2178,26 +2461,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getPrivateClusterConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, conditions_.get(i)); - } - 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(15, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); + } + 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(15, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2207,55 +2488,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationCluster other = (com.google.cloud.workstations.v1.WorkstationCluster) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.WorkstationCluster other = + (com.google.cloud.workstations.v1.WorkstationCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig() - .equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2274,8 +2541,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2307,8 +2573,7 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2319,96 +2584,103 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 grouping of workstation configurations and the associated workstations
    *  in that region.
@@ -2416,59 +2688,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationCluster)
       com.google.cloud.workstations.v1.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           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 5:
           return internalGetMutableAnnotations();
         case 15:
           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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationCluster.class,
+              com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1.WorkstationCluster.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();
@@ -2514,9 +2783,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2535,14 +2804,18 @@ public com.google.cloud.workstations.v1.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1.WorkstationCluster result = new com.google.cloud.workstations.v1.WorkstationCluster(this);
+      com.google.cloud.workstations.v1.WorkstationCluster result =
+          new com.google.cloud.workstations.v1.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00004000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2577,19 +2850,13 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2601,9 +2868,10 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
         result.subnetwork_ = subnetwork_;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
-            ? privateClusterConfig_
-            : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ =
+            privateClusterConfigBuilder_ == null
+                ? privateClusterConfig_
+                : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
         result.degraded_ = degraded_;
@@ -2614,38 +2882,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.workstations.v1.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster)other);
+        return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2653,7 +2922,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -2672,11 +2942,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster oth
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -2726,9 +2994,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster oth
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00004000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2760,111 +3029,122 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              network_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              subnetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getPrivateClusterConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 104: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 104
-            case 114: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 122
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                network_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                subnetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 104:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 104
+            case 114:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                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) {
@@ -2874,22 +3154,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this resource.
      * 
* * 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; @@ -2898,20 +3181,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * 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 { @@ -2919,28 +3203,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2950,17 +3241,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2970,18 +3265,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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; @@ -2990,20 +3287,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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 { @@ -3011,28 +3309,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3042,17 +3347,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3062,18 +3371,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3082,20 +3393,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -3103,28 +3415,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -3134,17 +3453,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3152,14 +3475,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3167,29 +3493,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3199,8 +3531,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3209,11 +3541,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3222,10 +3555,13 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3233,20 +3569,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3258,6 +3595,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3265,17 +3604,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3283,92 +3624,92 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -3377,10 +3718,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3389,20 +3733,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 15;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3415,6 +3760,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3423,17 +3770,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3442,23 +3791,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 15;
      */
     @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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3466,23 +3817,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3490,17 +3840,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 15;
      */
-    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"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3508,49 +3861,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 15;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3566,14 +3936,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -3584,17 +3957,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3607,11 +3984,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3624,11 +4005,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3636,36 +4021,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -3673,39 +4070,58 @@ 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_; /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3721,14 +4137,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3739,17 +4158,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3762,11 +4185,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3779,11 +4206,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3791,36 +4222,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -3828,39 +4271,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3876,14 +4338,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3894,17 +4359,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3917,11 +4386,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3934,11 +4407,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -3946,36 +4423,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3983,19 +4472,21 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4004,21 +4495,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -4026,30 +4518,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4059,18 +4558,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4080,19 +4583,21 @@ public Builder setEtagBytes( private java.lang.Object network_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4101,21 +4606,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -4123,30 +4629,37 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4156,18 +4669,22 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4177,6 +4694,8 @@ public Builder setNetworkBytes( private java.lang.Object subnetwork_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4184,13 +4703,13 @@ public Builder setNetworkBytes(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4199,6 +4718,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4206,15 +4727,14 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4222,6 +4742,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4229,18 +4751,22 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4248,6 +4774,7 @@ public Builder setSubnetwork(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4257,6 +4784,8 @@ public Builder clearSubnetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4264,12 +4793,14 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4277,43 +4808,66 @@ public Builder setSubnetworkBytes( return this; } - private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> + privateClusterConfigBuilder_; /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4327,14 +4881,19 @@ public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1.Workstat return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -4345,17 +4904,24 @@ public Builder setPrivateClusterConfig( return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - privateClusterConfig_ != null && - privateClusterConfig_ != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && privateClusterConfig_ != null + && privateClusterConfig_ + != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -4368,11 +4934,15 @@ public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1.Workst return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4385,55 +4955,76 @@ public Builder clearPrivateClusterConfig() { return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + getPrivateClusterConfigBuilder() { bitField0_ |= 0x00001000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), - getParentForChildren(), - isClean()); + privateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), getParentForChildren(), isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -4441,6 +5032,7 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigO
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -4448,6 +5040,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -4455,17 +5049,20 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ public Builder setDegraded(boolean value) { - + degraded_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -4473,6 +5070,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -4482,24 +5080,29 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00004000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -4509,11 +5112,15 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -4523,11 +5130,15 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -4537,14 +5148,17 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4558,14 +5172,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -4576,11 +5193,15 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -4596,14 +5217,17 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4617,14 +5241,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -4635,14 +5262,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -4653,18 +5283,20 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -4672,11 +5304,15 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -4689,11 +5325,15 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -4706,39 +5346,49 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -4746,56 +5396,66 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - 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> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00004000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4805,12 +5465,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster) private static final com.google.cloud.workstations.v1.WorkstationCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster(); } @@ -4819,27 +5479,27 @@ public static com.google.cloud.workstations.v1.WorkstationCluster getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4854,6 +5514,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java index 194ccd92cd35..a954f017ffb2 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java @@ -1,84 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationClusterOrBuilder extends +public interface WorkstationClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -87,30 +123,31 @@ public interface WorkstationClusterOrBuilder extends */ int getAnnotationsCount(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -118,21 +155,24 @@ boolean containsAnnotations( * map<string, string> annotations = 5; */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -142,6 +182,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -149,15 +191,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 15;
    */
-  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();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -165,9 +205,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 15;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -176,11 +217,13 @@ boolean containsLabels(
    * map<string, string> labels = 15;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -188,135 +231,179 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -324,10 +411,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -335,39 +425,57 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString - getSubnetworkBytes(); + com.google.protobuf.ByteString getSubnetworkBytes(); /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig(); /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder(); /** + * + * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -375,51 +483,64 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java index 7de38d6d9bc0..8225ce3f39cc 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * A set of configuration options describing how a workstation will be run.
  * Workstation configurations are intended to be shared across multiple
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig}
  */
-public final class WorkstationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig)
     WorkstationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -32,145 +50,169 @@ private WorkstationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkstationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationConfig_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 5:
         return internalGetAnnotations();
       case 18:
         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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1.WorkstationConfig.class,
+            com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder extends
+  public interface HostOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder(); public com.google.cloud.workstations.v1.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** + * + * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} */ - public static final class Host extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Host extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Host() { - } + + private Host() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Host(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder extends + public interface GceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
        * Email address of the service account that will be used on VM instances
        * used to support this config. If not set, VMs will run with a
@@ -180,10 +222,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
        * Email address of the service account that will be used on VM instances
        * used to support this config. If not set, VMs will run with a
@@ -193,166 +238,226 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
        * Number of instances to pool for faster workstation starup.
        * 
* * int32 pool_size = 5; + * * @return The poolSize. */ int getPoolSize(); /** + * + * *
        * Whether instances have no public IP address.
        * 
* * bool disable_public_ip_addresses = 6; + * * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** + * + * *
        * Whether to enable nested virtualization on instances.
        * 
* * bool enable_nested_virtualization = 7; + * * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig + getShieldedInstanceConfig(); /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig(); /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder(); /** + * + * *
        * Size of the boot disk in GB. Defaults to 50.
        * 
* * int32 boot_disk_size_gb = 9; + * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); } /** + * + * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceInstance() { machineType_ = ""; serviceAccount_ = ""; @@ -361,115 +466,137 @@ private GceInstance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); } - public interface GceShieldedInstanceConfigOrBuilder extends + public interface GceShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
          * Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
          * Whether the instance has integrity monitoring enabled.
          * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceShieldedInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceShieldedInstanceConfig() { - } + + private GceShieldedInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** + * + * *
          * Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -480,11 +607,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** + * + * *
          * Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -495,11 +625,14 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** + * + * *
          * Whether the instance has integrity monitoring enabled.
          * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -508,6 +641,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -520,7 +654,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -540,16 +674,15 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -559,19 +692,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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -584,101 +722,131 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -688,39 +856,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.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(); @@ -732,19 +907,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -752,14 +934,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceSh } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -776,46 +969,60 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -851,27 +1058,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { @@ -881,15 +1092,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableSecureBoot_ ; + private boolean enableSecureBoot_; /** + * + * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -897,27 +1112,33 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -927,13 +1148,16 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -941,27 +1165,33 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -971,13 +1201,16 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -985,27 +1218,33 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1014,6 +1253,7 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1026,41 +1266,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1072,78 +1319,94 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GceConfidentialInstanceConfigOrBuilder extends + public interface GceConfidentialInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Whether the instance has confidential compute enabled.
          * 
* * bool enable_confidential_compute = 1; + * * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceConfidentialInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceConfidentialInstanceConfig() { - } + + private GceConfidentialInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** + * + * *
          * Whether the instance has confidential compute enabled.
          * 
* * bool enable_confidential_compute = 1; + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1152,6 +1415,7 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1164,7 +1428,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1178,8 +1442,9 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableConfidentialCompute_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1189,15 +1454,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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + obj; - if (getEnableConfidentialCompute() - != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1210,95 +1482,127 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableConfidentialCompute()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1308,39 +1612,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.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(); @@ -1350,19 +1661,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1370,14 +1688,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceCo } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1388,46 +1717,60 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -1457,17 +1800,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + 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) { @@ -1477,15 +1822,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableConfidentialCompute_ ; + private boolean enableConfidentialCompute_; /** + * + * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1493,27 +1842,33 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** + * + * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; + * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ public Builder setEnableConfidentialCompute(boolean value) { - + enableConfidentialCompute_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; + * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -1522,6 +1877,7 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1534,41 +1890,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1580,21 +1943,26 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The machineType. */ @java.lang.Override @@ -1603,29 +1971,29 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -1634,9 +2002,12 @@ public java.lang.String getMachineType() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** + * + * *
        * Email address of the service account that will be used on VM instances
        * used to support this config. If not set, VMs will run with a
@@ -1646,6 +2017,7 @@ public java.lang.String getMachineType() {
        * 
* * string service_account = 2; + * * @return The serviceAccount. */ @java.lang.Override @@ -1654,14 +2026,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
        * Email address of the service account that will be used on VM instances
        * used to support this config. If not set, VMs will run with a
@@ -1671,16 +2044,15 @@ public java.lang.String getServiceAccount() {
        * 
* * string service_account = 2; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1689,40 +2061,49 @@ public java.lang.String getServiceAccount() { } public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1730,28 +2111,33 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** + * + * *
        * Number of instances to pool for faster workstation starup.
        * 
* * int32 pool_size = 5; + * * @return The poolSize. */ @java.lang.Override @@ -1762,11 +2148,14 @@ public int getPoolSize() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** + * + * *
        * Whether instances have no public IP address.
        * 
* * bool disable_public_ip_addresses = 6; + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -1777,11 +2166,14 @@ public boolean getDisablePublicIpAddresses() { public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 7; private boolean enableNestedVirtualization_ = false; /** + * + * *
        * Whether to enable nested virtualization on instances.
        * 
* * bool enable_nested_virtualization = 7; + * * @return The enableNestedVirtualization. */ @java.lang.Override @@ -1790,13 +2182,20 @@ public boolean getEnableNestedVirtualization() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -1804,37 +2203,63 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -1842,37 +2267,59 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** + * + * *
        * Size of the boot disk in GB. Defaults to 50.
        * 
* * int32 boot_disk_size_gb = 9; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -1881,6 +2328,7 @@ public int getBootDiskSizeGb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1892,8 +2340,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -1945,28 +2392,28 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, disablePublicIpAddresses_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); } if (enableNestedVirtualization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, enableNestedVirtualization_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableNestedVirtualization_); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getConfidentialInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getConfidentialInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1976,37 +2423,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.workstations.v1.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType() - .equals(other.getMachineType())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getPoolSize() - != other.getPoolSize()) return false; - if (getDisablePublicIpAddresses() - != other.getDisablePublicIpAddresses()) return false; - if (getEnableNestedVirtualization() - != other.getEnableNestedVirtualization()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getPoolSize() != other.getPoolSize()) return false; + if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; + if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig() - .equals(other.getConfidentialInstanceConfig())) return false; + if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) + return false; } - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2029,11 +2469,11 @@ public int hashCode() { hash = (37 * hash) + POOL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPoolSize(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisablePublicIpAddresses()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableNestedVirtualization()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -2050,87 +2490,96 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance + 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2140,39 +2589,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder + .class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.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(); @@ -2199,19 +2652,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = buildPartial(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2220,14 +2676,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { if (((bitField0_ & 0x00000004) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); @@ -2235,7 +2695,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.Worksta result.tags_ = tags_; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -2253,14 +2714,16 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho result.enableNestedVirtualization_ = enableNestedVirtualization_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = + shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = + confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -2271,46 +2734,54 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.Host.GceInstance) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance)other); + if (other + instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -2375,62 +2846,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 56: { - enableNestedVirtualization_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: + { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 56: + { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: + { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + 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) { @@ -2440,22 +2920,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object machineType_ = ""; /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2464,20 +2947,21 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2485,28 +2969,35 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -2516,17 +3007,21 @@ public Builder clearMachineType() { return this; } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -2536,6 +3031,8 @@ public Builder setMachineTypeBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
          * Email address of the service account that will be used on VM instances
          * used to support this config. If not set, VMs will run with a
@@ -2545,13 +3042,13 @@ public Builder setMachineTypeBytes(
          * 
* * string service_account = 2; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2560,6 +3057,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Email address of the service account that will be used on VM instances
          * used to support this config. If not set, VMs will run with a
@@ -2569,15 +3068,14 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2585,6 +3083,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Email address of the service account that will be used on VM instances
          * used to support this config. If not set, VMs will run with a
@@ -2594,18 +3094,22 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Email address of the service account that will be used on VM instances
          * used to support this config. If not set, VMs will run with a
@@ -2615,6 +3119,7 @@ public Builder setServiceAccount(
          * 
* * string service_account = 2; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -2624,6 +3129,8 @@ public Builder clearServiceAccount() { return this; } /** + * + * *
          * Email address of the service account that will be used on VM instances
          * used to support this config. If not set, VMs will run with a
@@ -2633,12 +3140,14 @@ public Builder clearServiceAccount() {
          * 
* * string service_account = 2; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -2646,45 +3155,55 @@ public Builder setServiceAccountBytes( return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2692,81 +3211,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -2776,18 +3309,22 @@ public Builder clearTags() { return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -2795,13 +3332,16 @@ public Builder addTagsBytes( return this; } - private int poolSize_ ; + private int poolSize_; /** + * + * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; + * * @return The poolSize. */ @java.lang.Override @@ -2809,27 +3349,33 @@ public int getPoolSize() { return poolSize_; } /** + * + * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; + * * @param value The poolSize to set. * @return This builder for chaining. */ public Builder setPoolSize(int value) { - + poolSize_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; + * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -2839,13 +3385,16 @@ public Builder clearPoolSize() { return this; } - private boolean disablePublicIpAddresses_ ; + private boolean disablePublicIpAddresses_; /** + * + * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -2853,27 +3402,33 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** + * + * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; + * * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ public Builder setDisablePublicIpAddresses(boolean value) { - + disablePublicIpAddresses_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; + * * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -2883,13 +3438,16 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private boolean enableNestedVirtualization_ ; + private boolean enableNestedVirtualization_; /** + * + * *
          * Whether to enable nested virtualization on instances.
          * 
* * bool enable_nested_virtualization = 7; + * * @return The enableNestedVirtualization. */ @java.lang.Override @@ -2897,27 +3455,33 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } /** + * + * *
          * Whether to enable nested virtualization on instances.
          * 
* * bool enable_nested_virtualization = 7; + * * @param value The enableNestedVirtualization to set. * @return This builder for chaining. */ public Builder setEnableNestedVirtualization(boolean value) { - + enableNestedVirtualization_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
          * Whether to enable nested virtualization on instances.
          * 
* * bool enable_nested_virtualization = 7; + * * @return This builder for chaining. */ public Builder clearEnableNestedVirtualization() { @@ -2927,43 +3491,73 @@ public Builder clearEnableNestedVirtualization() { return this; } - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2977,14 +3571,20 @@ public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1.Workst return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -2995,17 +3595,26 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - shieldedInstanceConfig_ != null && - shieldedInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && shieldedInstanceConfig_ != null + && shieldedInstanceConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -3018,11 +3627,15 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1.Work return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3035,90 +3648,147 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> + confidentialInstanceConfigBuilder_; /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder setConfidentialInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3132,14 +3802,20 @@ public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1.Wo return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -3150,17 +3826,26 @@ public Builder setConfidentialInstanceConfig( return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder mergeConfidentialInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - confidentialInstanceConfig_ != null && - confidentialInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && confidentialInstanceConfig_ != null + && confidentialInstanceConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -3173,11 +3858,15 @@ public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1. return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3190,60 +3879,90 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000080; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), - getParentForChildren(), - isClean()); + confidentialInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), getParentForChildren(), isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_ ; + private int bootDiskSizeGb_; /** + * + * *
          * Size of the boot disk in GB. Defaults to 50.
          * 
* * int32 boot_disk_size_gb = 9; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -3251,27 +3970,33 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
          * Size of the boot disk in GB. Defaults to 50.
          * 
* * int32 boot_disk_size_gb = 9; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(int value) { - + bootDiskSizeGb_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
          * Size of the boot disk in GB. Defaults to 50.
          * 
* * int32 boot_disk_size_gb = 9; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -3280,6 +4005,7 @@ public Builder clearBootDiskSizeGb() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3292,41 +4018,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3338,20 +4068,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int configCase_ = 0; private java.lang.Object config_; + public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; + private ConfigCase(int value) { this.value = value; } @@ -3367,29 +4100,35 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: return GCE_INSTANCE; - case 0: return CONFIG_NOT_SET; - default: return null; + case 1: + return GCE_INSTANCE; + case 0: + return CONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -3397,36 +4136,47 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3438,10 +4188,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configCase_ == 1) { - output.writeMessage(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage( + 1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -3453,8 +4203,9 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3464,18 +4215,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.workstations.v1.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host other = (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1.WorkstationConfig.Host other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance() - .equals(other.getGceInstance())) return false; + if (!getGceInstance().equals(other.getGceInstance())) return false; break; case 0: default: @@ -3505,87 +4256,94 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Host prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3595,39 +4353,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Host) com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.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(); @@ -3641,9 +4401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override @@ -3662,8 +4422,11 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host result = new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.Host result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -3673,11 +4436,11 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.Host result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && - gceInstanceBuilder_ != null) { + if (configCase_ == 1 && gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -3686,38 +4449,41 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host)other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host) other); } else { super.mergeFrom(other); return this; @@ -3725,15 +4491,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) + return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: { - break; - } + case GCE_INSTANCE: + { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3761,19 +4530,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGceInstanceFieldBuilder().getBuilder(), - extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 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) { @@ -3783,12 +4552,12 @@ public Builder mergeFrom( } // finally return this; } + private int configCase_ = 0; private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { @@ -3801,13 +4570,20 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> + gceInstanceBuilder_; /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -3815,11 +4591,15 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override @@ -3828,22 +4608,28 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGc if (configCase_ == 1) { return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder setGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3857,14 +4643,18 @@ public Builder setGceInstance(com.google.cloud.workstations.v1.WorkstationConfig return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder setGceInstance( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder + builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -3875,18 +4665,28 @@ public Builder setGceInstance( return this; } /** - *
+       *
+       *
+       * 
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder mergeGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 && - config_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { - config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_) - .mergeFrom(value).buildPartial(); + if (configCase_ == 1 + && config_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) { + config_ = + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -3902,11 +4702,14 @@ public Builder mergeGceInstance(com.google.cloud.workstations.v1.WorkstationConf return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -3925,49 +4728,68 @@ public Builder clearGceInstance() { return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder + getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); - } - gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( + config_ = + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); + } + gceInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -3977,6 +4799,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuil onChanged(); return gceInstanceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3989,12 +4812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host) private static final com.google.cloud.workstations.v1.WorkstationConfig.Host DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host(); } @@ -4003,27 +4826,28 @@ public static com.google.cloud.workstations.v1.WorkstationConfig.Host getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4038,123 +4862,156 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PersistentDirectoryOrBuilder extends + public interface PersistentDirectoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk + getGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder(); /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase + getDirectoryTypeCase(); } /** + * + * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersistentDirectory(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); } - public interface GceRegionalPersistentDiskOrBuilder extends + public interface GceRegionalPersistentDiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Size of the disk in GB. Must be empty if source_snapshot is set.
        * Defaults to 200.
        * 
* * int32 size_gb = 1; + * * @return The sizeGb. */ int getSizeGb(); /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4162,10 +5019,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2; + * * @return The fsType. */ java.lang.String getFsType(); /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4173,91 +5033,118 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2; + * * @return The bytes for fsType. */ - com.google.protobuf.ByteString - getFsTypeBytes(); + com.google.protobuf.ByteString getFsTypeBytes(); /** + * + * *
        * Type of the disk to use. Defaults to pd-standard.
        * 
* * string disk_type = 3; + * * @return The diskType. */ java.lang.String getDiskType(); /** + * + * *
        * Type of the disk to use. Defaults to pd-standard.
        * 
* * string disk_type = 3; + * * @return The bytes for diskType. */ - com.google.protobuf.ByteString - getDiskTypeBytes(); + com.google.protobuf.ByteString getDiskTypeBytes(); /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString - getSourceSnapshotBytes(); + com.google.protobuf.ByteString getSourceSnapshotBytes(); /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceRegionalPersistentDisk + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -4267,40 +5154,47 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } /** + * + * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code + * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Do not use.
          * 
@@ -4309,6 +5203,8 @@ public enum ReclaimPolicy */ RECLAIM_POLICY_UNSPECIFIED(0), /** + * + * *
          * The persistent disk will be deleted with the workstation.
          * 
@@ -4317,6 +5213,8 @@ public enum ReclaimPolicy */ DELETE(1), /** + * + * *
          * The persistent disk will be remain after the workstation is deleted,
          * and the administrator must manually delete the disk.
@@ -4329,6 +5227,8 @@ public enum ReclaimPolicy
         ;
 
         /**
+         *
+         *
          * 
          * Do not use.
          * 
@@ -4337,6 +5237,8 @@ public enum ReclaimPolicy */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
          * The persistent disk will be deleted with the workstation.
          * 
@@ -4345,6 +5247,8 @@ public enum ReclaimPolicy */ public static final int DELETE_VALUE = 1; /** + * + * *
          * The persistent disk will be remain after the workstation is deleted,
          * and the administrator must manually delete the disk.
@@ -4354,7 +5258,6 @@ public enum ReclaimPolicy
          */
         public static final int RETAIN_VALUE = 2;
 
-
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -4379,10 +5282,14 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0: return RECLAIM_POLICY_UNSPECIFIED;
-            case 1: return DELETE;
-            case 2: return RETAIN;
-            default: return null;
+            case 0:
+              return RECLAIM_POLICY_UNSPECIFIED;
+            case 1:
+              return DELETE;
+            case 2:
+              return RETAIN;
+            default:
+              return null;
           }
         }
 
@@ -4390,29 +5297,32 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
-        private static final com.google.protobuf.Internal.EnumLiteMap<
-            ReclaimPolicy> internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public ReclaimPolicy findValueByNumber(int number) {
-                  return ReclaimPolicy.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 ReclaimPolicy findValueByNumber(int number) {
+                    return ReclaimPolicy.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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
+
+        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+          return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory
+              .GceRegionalPersistentDisk.getDescriptor()
+              .getEnumTypes()
+              .get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -4421,7 +5331,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-              "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -4441,12 +5351,15 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
+       *
+       *
        * 
        * Size of the disk in GB. Must be empty if source_snapshot is set.
        * Defaults to 200.
        * 
* * int32 size_gb = 1; + * * @return The sizeGb. */ @java.lang.Override @@ -4455,9 +5368,12 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4465,6 +5381,7 @@ public int getSizeGb() {
        * 
* * string fs_type = 2; + * * @return The fsType. */ @java.lang.Override @@ -4473,14 +5390,15 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4488,16 +5406,15 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2; + * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -4506,14 +5423,18 @@ public java.lang.String getFsType() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** + * + * *
        * Type of the disk to use. Defaults to pd-standard.
        * 
* * string disk_type = 3; + * * @return The diskType. */ @java.lang.Override @@ -4522,29 +5443,29 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** + * + * *
        * Type of the disk to use. Defaults to pd-standard.
        * 
* * string disk_type = 3; + * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -4553,15 +5474,19 @@ public java.lang.String getDiskType() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The sourceSnapshot. */ @java.lang.Override @@ -4570,30 +5495,30 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -4604,32 +5529,54 @@ public java.lang.String getSourceSnapshot() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The reclaimPolicy. */ - @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4641,8 +5588,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -4652,7 +5598,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + if (reclaimPolicy_ + != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -4668,8 +5617,7 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -4677,9 +5625,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ + != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -4692,21 +5642,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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; - - if (getSizeGb() - != other.getSizeGb()) return false; - if (!getFsType() - .equals(other.getFsType())) return false; - if (!getDiskType() - .equals(other.getDiskType())) return false; - if (!getSourceSnapshot() - .equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other = + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + obj; + + if (getSizeGb() != other.getSizeGb()) return false; + if (!getFsType().equals(other.getFsType())) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4734,88 +5688,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4825,40 +5808,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.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(); @@ -4872,19 +5862,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + build() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4892,14 +5889,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Gc } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -4922,46 +5930,60 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Pe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); + if (other + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -5009,37 +6031,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -5049,16 +6077,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int sizeGb_ ; + private int sizeGb_; /** + * + * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * Defaults to 200.
          * 
* * int32 size_gb = 1; + * * @return The sizeGb. */ @java.lang.Override @@ -5066,29 +6098,35 @@ public int getSizeGb() { return sizeGb_; } /** + * + * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * Defaults to 200.
          * 
* * int32 size_gb = 1; + * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(int value) { - + sizeGb_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * Defaults to 200.
          * 
* * int32 size_gb = 1; + * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -5100,6 +6138,8 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5107,13 +6147,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2; + * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -5122,6 +6162,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5129,15 +6171,14 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2; + * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -5145,6 +6186,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5152,18 +6195,22 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2; + * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5171,6 +6218,7 @@ public Builder setFsType(
          * 
* * string fs_type = 2; + * * @return This builder for chaining. */ public Builder clearFsType() { @@ -5180,6 +6228,8 @@ public Builder clearFsType() { return this; } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5187,12 +6237,14 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2; + * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -5202,18 +6254,20 @@ public Builder setFsTypeBytes( private java.lang.Object diskType_ = ""; /** + * + * *
          * Type of the disk to use. Defaults to pd-standard.
          * 
* * string disk_type = 3; + * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -5222,20 +6276,21 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Type of the disk to use. Defaults to pd-standard.
          * 
* * string disk_type = 3; + * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -5243,28 +6298,35 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Type of the disk to use. Defaults to pd-standard.
          * 
* * string disk_type = 3; + * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Type of the disk to use. Defaults to pd-standard.
          * 
* * string disk_type = 3; + * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -5274,17 +6336,21 @@ public Builder clearDiskType() { return this; } /** + * + * *
          * Type of the disk to use. Defaults to pd-standard.
          * 
* * string disk_type = 3; + * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -5294,19 +6360,21 @@ public Builder setDiskTypeBytes( private java.lang.Object sourceSnapshot_ = ""; /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -5315,21 +6383,22 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -5337,30 +6406,37 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -5370,18 +6446,22 @@ public Builder clearSourceSnapshot() { return this; } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -5391,24 +6471,35 @@ public Builder setSourceSnapshotBytes( private int reclaimPolicy_ = 0; /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -5419,30 +6510,52 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { + public Builder setReclaimPolicy( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + value) { if (value == null) { throw new NullPointerException(); } @@ -5452,12 +6565,17 @@ public Builder setReclaimPolicy(com.google.cloud.workstations.v1.WorkstationConf return this; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -5466,6 +6584,7 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5478,41 +6597,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5524,20 +6650,24 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; + public enum DirectoryTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; + private DirectoryTypeCase(int value) { this.value = value; } @@ -5553,29 +6683,36 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: return GCE_PD; - case 0: return DIRECTORYTYPE_NOT_SET; - default: return null; + case 2: + return GCE_PD; + case 0: + return DIRECTORYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 2; /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -5583,44 +6720,67 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The mountPath. */ @java.lang.Override @@ -5629,29 +6789,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -5660,6 +6820,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5671,13 +6832,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(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + output.writeMessage( + 2, + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } getUnknownFields().writeTo(output); } @@ -5692,8 +6856,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5703,20 +6871,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.workstations.v1.WorkstationConfig.PersistentDirectory)) { + if (!(obj + instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath() - .equals(other.getMountPath())) return false; + if (!getMountPath().equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd() - .equals(other.getGcePd())) return false; + if (!getGcePd().equals(other.getGcePd())) return false; break; case 0: default: @@ -5748,87 +6916,95 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory + 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5838,39 +7014,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + .class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.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(); @@ -5885,19 +7065,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = buildPartial(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5906,25 +7089,29 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory bu @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && - gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -5933,59 +7120,69 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.PersistentDirectory) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)other); + if (other + instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: { - break; - } + case GCE_PD: + { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -6013,24 +7210,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - input.readMessage( - getGcePdFieldBuilder().getBuilder(), - extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); + directoryTypeCase_ = 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) { @@ -6040,12 +7238,12 @@ public Builder mergeFrom( } // finally return this; } + private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public Builder clearDirectoryType() { @@ -6058,13 +7256,24 @@ public Builder clearDirectoryType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> + gcePdBuilder_; /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -6072,35 +7281,53 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder setGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder setGcePd( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6114,14 +7341,20 @@ public Builder setGcePd(com.google.cloud.workstations.v1.WorkstationConfig.Persi return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder setGcePd( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -6132,18 +7365,33 @@ public Builder setGcePd( return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder mergeGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder mergeGcePd( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 && - directoryType_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) - .mergeFrom(value).buildPartial(); + if (directoryTypeCase_ == 2 + && directoryType_ + != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.newBuilder( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_) + .mergeFrom(value) + .buildPartial(); } else { directoryType_ = value; } @@ -6159,11 +7407,15 @@ public Builder mergeGcePd(com.google.cloud.workstations.v1.WorkstationConfig.Per return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -6182,50 +7434,84 @@ public Builder clearGcePd() { return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, + directoryType_ = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -6237,18 +7523,20 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Gc private java.lang.Object mountPath_ = ""; /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -6257,20 +7545,21 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -6278,28 +7567,35 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -6309,23 +7605,28 @@ public Builder clearMountPath() { return this; } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6338,41 +7639,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6384,121 +7689,149 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ContainerOrBuilder extends + public interface ContainerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return A list containing the command. */ - java.util.List - getCommandList(); + java.util.List getCommandList(); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return The count of command. */ int getCommandCount(); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString - getCommandBytes(int index); + com.google.protobuf.ByteString getCommandBytes(int index); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6507,30 +7840,31 @@ public interface ContainerOrBuilder extends */ int getEnvCount(); /** + * + * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - boolean containsEnv( - java.lang.String key); - /** - * Use {@link #getEnvMap()} instead. - */ + boolean containsEnv(java.lang.String key); + /** Use {@link #getEnvMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnv(); + java.util.Map getEnv(); /** + * + * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - java.util.Map - getEnvMap(); + java.util.Map getEnvMap(); /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6538,66 +7872,78 @@ boolean containsEnv( * map<string, string> env = 4; */ /* nullable */ -java.lang.String getEnvOrDefault( + java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - java.lang.String getEnvOrThrow( - java.lang.String key); + java.lang.String getEnvOrThrow(java.lang.String key); /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The workingDir. */ java.lang.String getWorkingDir(); /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString - getWorkingDirBytes(); + com.google.protobuf.ByteString getWorkingDirBytes(); /** + * + * *
      * If set, overrides the USER specified in the image with the given uid.
      * 
* * int32 run_as_user = 6; + * * @return The runAsUser. */ int getRunAsUser(); } /** + * + * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Container extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Container() { image_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -6607,51 +7953,55 @@ private Container() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Container(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_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 4: return internalGetEnv(); 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The image. */ @java.lang.Override @@ -6660,30 +8010,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -6692,37 +8042,46 @@ public java.lang.String getImage() { } public static final int COMMAND_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -6730,51 +8089,62 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -6782,46 +8152,50 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; + private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6829,20 +8203,21 @@ public int getEnvCount() { * map<string, string> env = 4; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6854,6 +8229,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6861,17 +8238,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6879,11 +8258,11 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6891,14 +8270,18 @@ public java.lang.String getEnvOrThrow( } public static final int WORKING_DIR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The workingDir. */ @java.lang.Override @@ -6907,29 +8290,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -6940,11 +8323,14 @@ public java.lang.String getWorkingDir() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** + * + * *
      * If set, overrides the USER specified in the image with the given uid.
      * 
* * int32 run_as_user = 6; + * * @return The runAsUser. */ @java.lang.Override @@ -6953,6 +8339,7 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6964,8 +8351,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -6975,12 +8361,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEnv(), - EnvDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -7015,22 +8397,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry - : internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry - env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, env__); + for (java.util.Map.Entry entry : + internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry env__ = + EnvDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7040,25 +8421,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.workstations.v1.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Container other = (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!internalGetEnv().equals( - other.internalGetEnv())) return false; - if (!getWorkingDir() - .equals(other.getWorkingDir())) return false; - if (getRunAsUser() - != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Container other = + (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; + + if (!getImage().equals(other.getImage())) return false; + if (!getCommandList().equals(other.getCommandList())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!internalGetEnv().equals(other.internalGetEnv())) return false; + if (!getWorkingDir().equals(other.getWorkingDir())) return false; + if (getRunAsUser() != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7094,87 +8470,94 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Container prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Container prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7184,61 +8567,61 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.Container) com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetEnv(); 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 4: return internalGetMutableEnv(); 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); } // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Container.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(); @@ -7255,13 +8638,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance(); } @@ -7276,14 +8660,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container build() { @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Container result = new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); + com.google.cloud.workstations.v1.WorkstationConfig.Container result = + new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig.Container result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.WorkstationConfig.Container result) { if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -7296,7 +8684,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.Worksta result.args_ = args_; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Container result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -7317,38 +8706,41 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Co public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.Container) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container)other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container) other); } else { super.mergeFrom(other); return this; @@ -7356,7 +8748,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Container other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) + return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -7382,8 +8776,7 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Cont } onChanged(); } - internalGetMutableEnv().mergeFrom( - other.internalGetEnv()); + internalGetMutableEnv().mergeFrom(other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -7419,48 +8812,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - env__ = input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put( - env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + 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) { @@ -7470,23 +8869,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object image_ = ""; /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -7495,21 +8897,22 @@ public java.lang.String getImage() { } } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -7517,30 +8920,37 @@ public java.lang.String getImage() { } } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @return This builder for chaining. */ public Builder clearImage() { @@ -7550,18 +8960,22 @@ public Builder clearImage() { return this; } /** - *
+       *
+       *
+       * 
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -7569,42 +8983,52 @@ public Builder setImageBytes( return this; } - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList command_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -7612,76 +9036,90 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCommand(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand( - java.lang.Iterable values) { + public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @return This builder for chaining. */ public Builder clearCommand() { @@ -7691,17 +9129,21 @@ public Builder clearCommand() { return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -7709,42 +9151,52 @@ public Builder addCommandBytes( return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -7752,76 +9204,90 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -7831,17 +9297,21 @@ public Builder clearArgs() { return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -7849,21 +9319,19 @@ public Builder addArgsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField( - EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -7872,10 +9340,13 @@ public Builder addArgsBytes( onChanged(); return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7883,20 +9354,21 @@ public int getEnvCount() { * map<string, string> env = 4; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7908,6 +9380,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7915,17 +9389,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7933,91 +9409,95 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap() - .clear(); + internalGetMutableEnv().getMutableMap().clear(); return this; } /** + * + * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder removeEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnv().getMutableMap() - .remove(key); + public Builder removeEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnv().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnv() { + public java.util.Map getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** + * + * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder putEnv( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableEnv().getMutableMap() - .put(key, value); + public Builder putEnv(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEnv().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder putAllEnv( - java.util.Map values) { - internalGetMutableEnv().getMutableMap() - .putAll(values); + public Builder putAllEnv(java.util.Map values) { + internalGetMutableEnv().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -8026,20 +9506,21 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -8047,28 +9528,35 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -8078,17 +9566,21 @@ public Builder clearWorkingDir() { return this; } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -8096,13 +9588,16 @@ public Builder setWorkingDirBytes( return this; } - private int runAsUser_ ; + private int runAsUser_; /** + * + * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; + * * @return The runAsUser. */ @java.lang.Override @@ -8110,27 +9605,33 @@ public int getRunAsUser() { return runAsUser_; } /** + * + * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; + * * @param value The runAsUser to set. * @return This builder for chaining. */ public Builder setRunAsUser(int value) { - + runAsUser_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; + * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -8139,6 +9640,7 @@ public Builder clearRunAsUser() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8151,41 +9653,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Container DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Container + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Container + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8197,39 +9702,47 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomerEncryptionKeyOrBuilder extends + public interface CustomerEncryptionKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8241,10 +9754,13 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2; + * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8256,12 +9772,14 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2; + * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); } /** + * + * *
    * A customer-managed encryption key for the Compute Engine resources
    * of this workstation configuration.
@@ -8269,15 +9787,16 @@ public interface CustomerEncryptionKeyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -8285,39 +9804,45 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class,
+              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder
+                  .class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
+     *
+     *
      * 
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The kmsKey. */ @java.lang.Override @@ -8326,30 +9851,30 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + 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 { @@ -8358,9 +9883,12 @@ public java.lang.String getKmsKey() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8372,6 +9900,7 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key_service_account = 2; + * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -8380,14 +9909,15 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8399,16 +9929,15 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2; + * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -8417,6 +9946,7 @@ public java.lang.String getKmsKeyServiceAccount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8428,8 +9958,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -8459,17 +9988,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.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj + instanceof com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = + (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount() - .equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8490,88 +10019,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8581,6 +10123,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A customer-managed encryption key for the Compute Engine resources
      * of this workstation configuration.
@@ -8588,33 +10132,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)
         com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.workstations.v1.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+        return com.google.cloud.workstations.v1.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class);
+                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class,
+                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.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();
@@ -8625,19 +10171,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.workstations.v1.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() {
-        return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance();
+      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+          getDefaultInstanceForType() {
+        return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey build() {
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = buildPartial();
+        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8645,14 +10194,19 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey buildPartial() {
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+          buildPartial() {
+        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result =
+            new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) {
+      private void buildPartial0(
+          com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.kmsKey_ = kmsKey_;
@@ -8666,46 +10220,54 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Cu
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1.WorkstationConfig.CustomerEncryptionKey) {
-          return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)other);
+        if (other
+            instanceof com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) {
+          return mergeFrom(
+              (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) {
-        if (other == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) {
+        if (other
+            == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+                .getDefaultInstance()) return this;
         if (!other.getKmsKey().isEmpty()) {
           kmsKey_ = other.kmsKey_;
           bitField0_ |= 0x00000001;
@@ -8742,22 +10304,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                kmsKey_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                kmsKeyServiceAccount_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  kmsKey_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  kmsKeyServiceAccount_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  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) {
@@ -8767,23 +10332,26 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object kmsKey_ = "";
       /**
+       *
+       *
        * 
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @return The kmsKey. */ 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; @@ -8792,21 +10360,22 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + 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 { @@ -8814,30 +10383,37 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -8847,18 +10423,22 @@ public Builder clearKmsKey() { return this; } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -8868,6 +10448,8 @@ public Builder setKmsKeyBytes( private java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8879,13 +10461,13 @@ public Builder setKmsKeyBytes(
        * 
* * string kms_key_service_account = 2; + * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -8894,6 +10476,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8905,15 +10489,14 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; + * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -8921,6 +10504,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8932,18 +10517,22 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; + * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8955,6 +10544,7 @@ public Builder setKmsKeyServiceAccount(
        * 
* * string kms_key_service_account = 2; + * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -8964,6 +10554,8 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8975,18 +10567,21 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; + * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8999,41 +10594,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9045,21 +10644,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -9068,29 +10671,29 @@ 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; } } /** + * + * *
    * Full name of this resource.
    * 
* * 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 { @@ -9099,14 +10702,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -9115,29 +10722,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; } } /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @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 { @@ -9146,14 +10753,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -9162,29 +10773,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -9195,12 +10806,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -9209,32 +10823,35 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9242,20 +10859,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9267,6 +10885,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9274,17 +10894,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9292,11 +10914,11 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -9304,32 +10926,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 18; + 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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_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.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9338,20 +10962,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 18;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9364,6 +10989,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9372,17 +10999,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9391,11 +11020,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 18;
    */
   @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();
     }
@@ -9405,11 +11034,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -9417,11 +11050,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -9429,11 +11066,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -9443,11 +11083,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -9455,11 +11099,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -9467,11 +11115,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -9481,11 +11132,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -9493,11 +11148,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -9505,11 +11164,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -9517,15 +11179,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ @java.lang.Override @@ -9534,30 +11200,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -9568,6 +11234,8 @@ public java.lang.String getEtag() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -9575,6 +11243,7 @@ public java.lang.String getEtag() {
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -9582,6 +11251,8 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -9589,6 +11260,7 @@ public boolean hasIdleTimeout() {
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return The idleTimeout. */ @java.lang.Override @@ -9596,6 +11268,8 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -9612,6 +11286,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
   public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11;
   private com.google.protobuf.Duration runningTimeout_;
   /**
+   *
+   *
    * 
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -9620,6 +11296,7 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -9627,6 +11304,8 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -9635,13 +11314,18 @@ public boolean hasRunningTimeout() {
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -9653,17 +11337,22 @@ public com.google.protobuf.Duration getRunningTimeout() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
-    return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_;
+    return runningTimeout_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : runningTimeout_;
   }
 
   public static final int HOST_FIELD_NUMBER = 12;
   private com.google.cloud.workstations.v1.WorkstationConfig.Host host_;
   /**
+   *
+   *
    * 
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * * @return Whether the host field is set. */ @java.lang.Override @@ -9671,18 +11360,25 @@ public boolean hasHost() { return host_ != null; } /** + * + * *
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { - return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } /** + * + * *
    * Runtime host for the workstation.
    * 
@@ -9691,79 +11387,109 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") - private java.util.List persistentDirectories_; + private java.util.List + persistentDirectories_; /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public java.util.List getPersistentDirectoriesList() { + public java.util.List + getPersistentDirectoriesList() { return persistentDirectories_; } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { return persistentDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * * @return Whether the container field is set. */ @java.lang.Override @@ -9771,19 +11497,26 @@ public boolean hasContainer() { return container_ != null; } /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { - return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() + : container_; } /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
@@ -9792,13 +11525,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer
    * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
    */
   @java.lang.Override
-  public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() {
-    return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_;
+  public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder
+      getContainerOrBuilder() {
+    return container_ == null
+        ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()
+        : container_;
   }
 
   public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17;
   private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_;
   /**
+   *
+   *
    * 
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -9815,7 +11553,10 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -9823,6 +11564,8 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -9839,14 +11582,23 @@ public boolean hasEncryptionKey() {
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -9863,16 +11615,24 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -9880,6 +11640,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyO
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -9888,67 +11649,82 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9960,8 +11736,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_); } @@ -9974,12 +11749,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -10016,12 +11787,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 18); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); getUnknownFields().writeTo(output); } @@ -10041,75 +11808,65 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, persistentDirectories_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getEncryptionKey()); - } - 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(18, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); + } + 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(18, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10119,73 +11876,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig other = (com.google.cloud.workstations.v1.WorkstationConfig) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.WorkstationConfig other = + (com.google.cloud.workstations.v1.WorkstationConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout() - .equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout() - .equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList() - .equals(other.getPersistentDirectoriesList())) return false; + if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer() - .equals(other.getContainer())) return false; + if (!getContainer().equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; } - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10204,8 +11944,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -10253,8 +11992,7 @@ public int hashCode() { hash = (53 * hash) + getEncryptionKey().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -10265,96 +12003,103 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 set of configuration options describing how a workstation will be run.
    * Workstation configurations are intended to be shared across multiple
@@ -10363,59 +12108,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1.WorkstationConfig)
       com.google.cloud.workstations.v1.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           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 5:
           return internalGetMutableAnnotations();
         case 18:
           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.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationConfig.class,
+              com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1.WorkstationConfig.newBuilder()
-    private Builder() {
-
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
+    private Builder() {}
 
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -10486,9 +12228,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -10507,14 +12249,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1.WorkstationConfig result = new com.google.cloud.workstations.v1.WorkstationConfig(this);
+      com.google.cloud.workstations.v1.WorkstationConfig result =
+          new com.google.cloud.workstations.v1.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -10558,47 +12304,34 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig re
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ = idleTimeoutBuilder_ == null
-            ? idleTimeout_
-            : idleTimeoutBuilder_.build();
+        result.idleTimeout_ =
+            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ = runningTimeoutBuilder_ == null
-            ? runningTimeout_
-            : runningTimeoutBuilder_.build();
+        result.runningTimeout_ =
+            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null
-            ? host_
-            : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.container_ = containerBuilder_ == null
-            ? container_
-            : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.encryptionKey_ = encryptionKeyBuilder_ == null
-            ? encryptionKey_
-            : encryptionKeyBuilder_.build();
+        result.encryptionKey_ =
+            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.degraded_ = degraded_;
@@ -10609,38 +12342,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig re
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig)other);
+        return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -10648,7 +12382,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -10667,11 +12402,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -10714,9 +12447,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPersistentDirectoriesFieldBuilder() : null;
+            persistentDirectoriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPersistentDirectoriesFieldBuilder()
+                    : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -10749,9 +12483,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00020000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -10783,142 +12518,148 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getIdleTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getRunningTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getHostFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 106: {
-              com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.parser(),
-                      extensionRegistry);
-              if (persistentDirectoriesBuilder_ == null) {
-                ensurePersistentDirectoriesIsMutable();
-                persistentDirectories_.add(m);
-              } else {
-                persistentDirectoriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getContainerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 114
-            case 120: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 120
-            case 130: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 130
-            case 138: {
-              input.readMessage(
-                  getEncryptionKeyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 138
-            case 146: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 146
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory
+                            .parser(),
+                        extensionRegistry);
+                if (persistentDirectoriesBuilder_ == null) {
+                  ensurePersistentDirectoriesIsMutable();
+                  persistentDirectories_.add(m);
+                } else {
+                  persistentDirectoriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 114
+            case 120:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 120
+            case 130:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 130
+            case 138:
+              {
+                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 138
+            case 146:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 146
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10928,22 +12669,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this resource.
      * 
* * 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; @@ -10952,20 +12696,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * 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 { @@ -10973,28 +12718,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -11004,17 +12756,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -11024,18 +12780,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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; @@ -11044,20 +12802,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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 { @@ -11065,28 +12824,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -11096,17 +12862,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -11116,18 +12886,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -11136,20 +12908,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -11157,28 +12930,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -11188,17 +12968,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -11206,14 +12990,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -11221,29 +13008,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -11253,8 +13046,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -11263,11 +13056,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -11276,10 +13070,13 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11287,20 +13084,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11312,6 +13110,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11319,17 +13119,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11337,92 +13139,92 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -11431,10 +13233,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11443,20 +13248,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 18;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11469,6 +13275,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11477,17 +13285,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11496,23 +13306,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 18;
      */
     @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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11520,23 +13332,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11544,17 +13355,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 18;
      */
-    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"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11562,49 +13376,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 18;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -11620,14 +13451,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -11638,17 +13472,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -11661,11 +13499,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -11678,11 +13520,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -11690,36 +13536,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -11727,39 +13585,58 @@ 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_; /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -11775,14 +13652,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -11793,17 +13673,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -11816,11 +13700,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -11833,11 +13721,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -11845,36 +13737,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -11882,39 +13786,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -11930,14 +13853,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -11948,17 +13874,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -11971,11 +13901,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -11988,11 +13922,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -12000,36 +13938,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -12037,19 +13987,21 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -12058,21 +14010,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -12080,30 +14033,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -12113,18 +14073,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -12134,8 +14098,13 @@ public Builder setEtagBytes( private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + idleTimeoutBuilder_; /** + * + * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12143,12 +14112,15 @@ public Builder setEtagBytes(
      * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12156,16 +14128,21 @@ public boolean hasIdleTimeout() {
      * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + return idleTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** + * + * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12188,6 +14165,8 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12196,8 +14175,7 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration idle_timeout = 10;
      */
-    public Builder setIdleTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (idleTimeoutBuilder_ == null) {
         idleTimeout_ = builderForValue.build();
       } else {
@@ -12208,6 +14186,8 @@ public Builder setIdleTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12218,9 +14198,9 @@ public Builder setIdleTimeout(
      */
     public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
       if (idleTimeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0) &&
-          idleTimeout_ != null &&
-          idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0)
+            && idleTimeout_ != null
+            && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getIdleTimeoutBuilder().mergeFrom(value);
         } else {
           idleTimeout_ = value;
@@ -12233,6 +14213,8 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12252,6 +14234,8 @@ public Builder clearIdleTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12266,6 +14250,8 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
       return getIdleTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12278,11 +14264,14 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
       if (idleTimeoutBuilder_ != null) {
         return idleTimeoutBuilder_.getMessageOrBuilder();
       } else {
-        return idleTimeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_;
+        return idleTimeout_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : idleTimeout_;
       }
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12292,14 +14281,17 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * .google.protobuf.Duration idle_timeout = 10;
      */
     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>
         getIdleTimeoutFieldBuilder() {
       if (idleTimeoutBuilder_ == null) {
-        idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getIdleTimeout(),
-                getParentForChildren(),
-                isClean());
+        idleTimeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getIdleTimeout(), getParentForChildren(), isClean());
         idleTimeout_ = null;
       }
       return idleTimeoutBuilder_;
@@ -12307,8 +14299,13 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
 
     private com.google.protobuf.Duration runningTimeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        runningTimeoutBuilder_;
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12317,12 +14314,15 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12331,16 +14331,21 @@ public boolean hasRunningTimeout() {
      * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** + * + * *
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12364,6 +14369,8 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12373,8 +14380,7 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration running_timeout = 11;
      */
-    public Builder setRunningTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (runningTimeoutBuilder_ == null) {
         runningTimeout_ = builderForValue.build();
       } else {
@@ -12385,6 +14391,8 @@ public Builder setRunningTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12396,9 +14404,9 @@ public Builder setRunningTimeout(
      */
     public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
       if (runningTimeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0) &&
-          runningTimeout_ != null &&
-          runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0)
+            && runningTimeout_ != null
+            && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getRunningTimeoutBuilder().mergeFrom(value);
         } else {
           runningTimeout_ = value;
@@ -12411,6 +14419,8 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12431,6 +14441,8 @@ public Builder clearRunningTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12446,6 +14458,8 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
       return getRunningTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12459,11 +14473,14 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
       if (runningTimeoutBuilder_ != null) {
         return runningTimeoutBuilder_.getMessageOrBuilder();
       } else {
-        return runningTimeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_;
+        return runningTimeout_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : runningTimeout_;
       }
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12474,14 +14491,17 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * .google.protobuf.Duration running_timeout = 11;
      */
     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>
         getRunningTimeoutFieldBuilder() {
       if (runningTimeoutBuilder_ == null) {
-        runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getRunningTimeout(),
-                getParentForChildren(),
-                isClean());
+        runningTimeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getRunningTimeout(), getParentForChildren(), isClean());
         runningTimeout_ = null;
       }
       return runningTimeoutBuilder_;
@@ -12489,34 +14509,47 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
 
     private com.google.cloud.workstations.v1.WorkstationConfig.Host host_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> hostBuilder_;
+            com.google.cloud.workstations.v1.WorkstationConfig.Host,
+            com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder,
+            com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>
+        hostBuilder_;
     /**
+     *
+     *
      * 
      * Runtime host for the workstation.
      * 
* * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Runtime host for the workstation.
      * 
* * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * * @return The host. */ public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } else { return hostBuilder_.getMessage(); } } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12537,6 +14570,8 @@ public Builder setHost(com.google.cloud.workstations.v1.WorkstationConfig.Host v return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12555,6 +14590,8 @@ public Builder setHost( return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12563,9 +14600,10 @@ public Builder setHost( */ public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - host_ != null && - host_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && host_ != null + && host_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -12578,6 +14616,8 @@ public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12595,6 +14635,8 @@ public Builder clearHost() { return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12607,6 +14649,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder getHostBu return getHostFieldBuilder().getBuilder(); } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12617,11 +14661,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostO if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12629,39 +14676,54 @@ public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostO * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( - getHost(), - getParentForChildren(), - isClean()); + hostBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( + getHost(), getParentForChildren(), isClean()); host_ = null; } return hostBuilder_; } - private java.util.List persistentDirectories_ = - java.util.Collections.emptyList(); + private java.util.List + persistentDirectories_ = java.util.Collections.emptyList(); + private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); + persistentDirectories_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory>( + persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + persistentDirectoriesBuilder_; /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public java.util.List getPersistentDirectoriesList() { + public java.util.List + getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -12669,11 +14731,15 @@ public java.util.List * Directories to persist across workstation sessions. *
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -12683,13 +14749,18 @@ public int getPersistentDirectoriesCount() { } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -12697,11 +14768,15 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory ge } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder setPersistentDirectories( int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { @@ -12718,14 +14793,20 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder setPersistentDirectories( - int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -12736,13 +14817,18 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public Builder addPersistentDirectories(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12756,11 +14842,15 @@ public Builder addPersistentDirectories(com.google.cloud.workstations.v1.Worksta return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addPersistentDirectories( int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { @@ -12777,14 +14867,19 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -12795,14 +14890,20 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addPersistentDirectories( - int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -12813,18 +14914,23 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addAllPersistentDirectories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory> + values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -12832,11 +14938,15 @@ public Builder addAllPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -12849,11 +14959,15 @@ public Builder clearPersistentDirectories() { return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -12866,39 +14980,54 @@ public Builder removePersistentDirectories(int index) { return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + getPersistentDirectoriesBuilder(int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); } else { + return persistentDirectories_.get(index); + } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public java.util.List - getPersistentDirectoriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -12906,45 +15035,70 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrB } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( - int index) { - return getPersistentDirectoriesFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder(int index) { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public java.util.List - getPersistentDirectoriesBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder> + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -12956,36 +15110,49 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Bu private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> containerBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Container, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> + containerBuilder_; /** + * + * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
      * 
* * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
      * 
* * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * * @return The container. */ public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() + : container_; } else { return containerBuilder_.getMessage(); } } /** + * + * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12993,7 +15160,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer
      *
      * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
      */
-    public Builder setContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) {
+    public Builder setContainer(
+        com.google.cloud.workstations.v1.WorkstationConfig.Container value) {
       if (containerBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -13007,6 +15175,8 @@ public Builder setContainer(com.google.cloud.workstations.v1.WorkstationConfig.C
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13026,6 +15196,8 @@ public Builder setContainer(
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13033,11 +15205,14 @@ public Builder setContainer(
      *
      * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
      */
-    public Builder mergeContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) {
+    public Builder mergeContainer(
+        com.google.cloud.workstations.v1.WorkstationConfig.Container value) {
       if (containerBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          container_ != null &&
-          container_ != com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && container_ != null
+            && container_
+                != com.google.cloud.workstations.v1.WorkstationConfig.Container
+                    .getDefaultInstance()) {
           getContainerBuilder().mergeFrom(value);
         } else {
           container_ = value;
@@ -13050,6 +15225,8 @@ public Builder mergeContainer(com.google.cloud.workstations.v1.WorkstationConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13068,6 +15245,8 @@ public Builder clearContainer() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13075,12 +15254,15 @@ public Builder clearContainer() {
      *
      * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
      */
-    public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder getContainerBuilder() {
+    public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder
+        getContainerBuilder() {
       bitField0_ |= 0x00004000;
       onChanged();
       return getContainerFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13088,15 +15270,19 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder getC
      *
      * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
      */
-    public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() {
+    public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder
+        getContainerOrBuilder() {
       if (containerBuilder_ != null) {
         return containerBuilder_.getMessageOrBuilder();
       } else {
-        return container_ == null ?
-            com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_;
+        return container_ == null
+            ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()
+            : container_;
       }
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13105,14 +15291,17 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get
      * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> 
+            com.google.cloud.workstations.v1.WorkstationConfig.Container,
+            com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder,
+            com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>
         getContainerFieldBuilder() {
       if (containerBuilder_ == null) {
-        containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>(
-                getContainer(),
-                getParentForChildren(),
-                isClean());
+        containerBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.workstations.v1.WorkstationConfig.Container,
+                com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder,
+                com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>(
+                getContainer(), getParentForChildren(), isClean());
         container_ = null;
       }
       return containerBuilder_;
@@ -13120,8 +15309,13 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get
 
     private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_;
+            com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey,
+            com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder,
+            com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>
+        encryptionKeyBuilder_;
     /**
+     *
+     *
      * 
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13138,13 +15332,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13161,17 +15360,26 @@ public boolean hasEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return The encryptionKey. */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13188,9 +15396,12 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13204,6 +15415,8 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConf return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13220,10 +15433,13 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConf
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder + builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -13234,6 +15450,8 @@ public Builder setEncryptionKey( return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13250,13 +15468,18 @@ public Builder setEncryptionKey(
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - encryptionKey_ != null && - encryptionKey_ != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && encryptionKey_ != null + && encryptionKey_ + != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -13269,6 +15492,8 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationCo return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13285,7 +15510,9 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationCo
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00008000); @@ -13298,6 +15525,8 @@ public Builder clearEncryptionKey() { return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13314,14 +15543,19 @@ public Builder clearEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder + getEncryptionKeyBuilder() { bitField0_ |= 0x00008000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13338,17 +15572,24 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13365,24 +15606,31 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyO
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), - getParentForChildren(), - isClean()); + encryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -13390,6 +15638,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyO
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -13397,6 +15646,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -13404,17 +15655,20 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ public Builder setDegraded(boolean value) { - + degraded_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -13422,6 +15676,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -13431,24 +15686,29 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00020000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -13458,11 +15718,15 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -13472,11 +15736,15 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -13486,14 +15754,17 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13507,14 +15778,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -13525,11 +15799,15 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -13545,14 +15823,17 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13566,14 +15847,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -13584,14 +15868,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -13602,18 +15889,20 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -13621,11 +15910,15 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -13638,11 +15931,15 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -13655,39 +15952,49 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -13695,56 +16002,66 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - 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> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00020000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -13754,12 +16071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig) private static final com.google.cloud.workstations.v1.WorkstationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig(); } @@ -13768,27 +16085,27 @@ public static com.google.cloud.workstations.v1.WorkstationConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13803,6 +16120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java index 0e8cf8d1ce05..cc8f8b237d37 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java @@ -1,84 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationConfigOrBuilder extends +public interface WorkstationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -87,30 +123,31 @@ public interface WorkstationConfigOrBuilder extends */ int getAnnotationsCount(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -118,21 +155,24 @@ boolean containsAnnotations( * map<string, string> annotations = 5; */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -142,6 +182,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -149,15 +191,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 18;
    */
-  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();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -165,9 +205,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 18;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -176,11 +217,13 @@ boolean containsLabels(
    * map<string, string> labels = 18;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -188,113 +231,152 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -302,10 +384,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -313,10 +398,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -328,6 +416,8 @@ java.lang.String getLabelsOrThrow(
   com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -336,10 +426,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -348,10 +441,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -364,24 +460,32 @@ java.lang.String getLabelsOrThrow(
   com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * * @return Whether the host field is set. */ boolean hasHost(); /** + * + * *
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12; + * * @return The host. */ com.google.cloud.workstations.v1.WorkstationConfig.Host getHost(); /** + * + * *
    * Runtime host for the workstation.
    * 
@@ -391,70 +495,100 @@ java.lang.String getLabelsOrThrow( com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories( + int index); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ int getPersistentDirectoriesCount(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index); /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * * @return Whether the container field is set. */ boolean hasContainer(); /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14; + * * @return The container. */ com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer(); /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
@@ -465,6 +599,8 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
   com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder();
 
   /**
+   *
+   *
    * 
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -481,11 +617,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -502,11 +643,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return The encryptionKey. */ com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -523,11 +669,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder(); /** + * + * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -535,51 +686,64 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java index 2b722398eb46..1603bb33897d 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java @@ -1,84 +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/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationOrBuilder extends +public interface WorkstationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.Workstation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -87,30 +123,31 @@ public interface WorkstationOrBuilder extends */ int getAnnotationsCount(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -118,21 +155,24 @@ boolean containsAnnotations( * map<string, string> annotations = 5; */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -142,6 +182,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -149,15 +191,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 13;
    */
-  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();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -165,9 +205,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 13;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -176,11 +217,13 @@ boolean containsLabels(
    * map<string, string> labels = 13;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -188,132 +231,181 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workstations.v1.Workstation.State getState(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -323,10 +415,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -336,8 +431,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java new file mode 100644 index 000000000000..60caf28edc2b --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java @@ -0,0 +1,1091 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public final class WorkstationsProto { + private WorkstationsProto() {} + + 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_workstations_v1_WorkstationCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" + + "ons.proto\022\034google.cloud.workstations.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032 google/protobuf" + + "/field_mask.proto\032\037google/protobuf/times" + + "tamp.proto\032\027google/rpc/status.proto\"\241\010\n\022" + + "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" + + "lay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013reco" + + "nciling\030\004 \001(\010B\003\340A\003\022V\n\013annotations\030\005 \003(\0132" + + "A.google.cloud.workstations.v1.Workstati" + + "onCluster.AnnotationsEntry\022L\n\006labels\030\017 \003" + + "(\0132<.google.cloud.workstations.v1.Workst" + + "ationCluster.LabelsEntry\0224\n\013create_time\030" + + "\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\t \001(\t" + + "\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027\n\nsubnetwork\030\013 \001" + + "(\tB\003\340A\005\022e\n\026private_cluster_config\030\014 \001(\0132" + + "E.google.cloud.workstations.v1.Workstati" + + "onCluster.PrivateClusterConfig\022\025\n\010degrad" + + "ed\030\r \001(\010B\003\340A\003\022+\n\nconditions\030\016 \003(\0132\022.goog" + + "le.rpc.StatusB\003\340A\003\032\232\001\n\024PrivateClusterCon" + + "fig\022$\n\027enable_private_endpoint\030\001 \001(\010B\003\340A" + + "\005\022\035\n\020cluster_hostname\030\002 \001(\tB\003\340A\003\022#\n\026serv" + + "ice_attachment_uri\030\003 \001(\tB\003\340A\003\022\030\n\020allowed" + + "_projects\030\004 \003(\t\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\212\001\352A\206" + + "\001\n.workstations.googleapis.com/Workstati" + + "onCluster\022Qprojects/{project}/locations/" + + "{location}/workstationClusters/{workstat" + + "ion_cluster}R\001\001\"\326\025\n\021WorkstationConfig\022\014\n" + + "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid" + + "\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022U\n" + + "\013annotations\030\005 \003(\0132@.google.cloud.workst" + + "ations.v1.WorkstationConfig.AnnotationsE" + + "ntry\022K\n\006labels\030\022 \003(\0132;.google.cloud.work" + + "stations.v1.WorkstationConfig.LabelsEntr" + + "y\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_" + + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\022\014\n\004etag\030\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132" + + "\031.google.protobuf.Duration\0222\n\017running_ti" + + "meout\030\013 \001(\0132\031.google.protobuf.Duration\022B" + + "\n\004host\030\014 \001(\01324.google.cloud.workstations" + + ".v1.WorkstationConfig.Host\022c\n\026persistent" + + "_directories\030\r \003(\0132C.google.cloud.workst" + + "ations.v1.WorkstationConfig.PersistentDi" + + "rectory\022L\n\tcontainer\030\016 \001(\01329.google.clou" + + "d.workstations.v1.WorkstationConfig.Cont" + + "ainer\022]\n\016encryption_key\030\021 \001(\0132E.google.c" + + "loud.workstations.v1.WorkstationConfig.C" + + "ustomerEncryptionKey\022\025\n\010degraded\030\017 \001(\010B\003" + + "\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc.Sta" + + "tusB\003\340A\003\032\356\005\n\004Host\022X\n\014gce_instance\030\001 \001(\0132" + + "@.google.cloud.workstations.v1.Workstati" + + "onConfig.Host.GceInstanceH\000\032\201\005\n\013GceInsta" + + "nce\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017service_acc" + + "ount\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool_size\030\005 " + + "\001(\005\022#\n\033disable_public_ip_addresses\030\006 \001(\010" + + "\022$\n\034enable_nested_virtualization\030\007 \001(\010\022|" + + "\n\030shielded_instance_config\030\010 \001(\0132Z.googl" + + "e.cloud.workstations.v1.WorkstationConfi" + + "g.Host.GceInstance.GceShieldedInstanceCo" + + "nfig\022\204\001\n\034confidential_instance_config\030\n " + + "\001(\0132^.google.cloud.workstations.v1.Works" + + "tationConfig.Host.GceInstance.GceConfide" + + "ntialInstanceConfig\022\031\n\021boot_disk_size_gb" + + "\030\t \001(\005\032q\n\031GceShieldedInstanceConfig\022\032\n\022e" + + "nable_secure_boot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002" + + " \001(\010\022#\n\033enable_integrity_monitoring\030\003 \001(" + + "\010\032D\n\035GceConfidentialInstanceConfig\022#\n\033en" + + "able_confidential_compute\030\001 \001(\010B\010\n\006confi" + + "g\032\347\003\n\023PersistentDirectory\022o\n\006gce_pd\030\002 \001(" + + "\0132].google.cloud.workstations.v1.Worksta" + + "tionConfig.PersistentDirectory.GceRegion" + + "alPersistentDiskH\000\022\022\n\nmount_path\030\001 \001(\t\032\270" + + "\002\n\031GceRegionalPersistentDisk\022\017\n\007size_gb\030" + + "\001 \001(\005\022\017\n\007fs_type\030\002 \001(\t\022\021\n\tdisk_type\030\003 \001(" + + "\t\022\027\n\017source_snapshot\030\005 \001(\t\022\203\001\n\016reclaim_p" + + "olicy\030\004 \001(\0162k.google.cloud.workstations." + + "v1.WorkstationConfig.PersistentDirectory" + + ".GceRegionalPersistentDisk.ReclaimPolicy" + + "\"G\n\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSP" + + "ECIFIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016dir" + + "ectory_type\032\340\001\n\tContainer\022\r\n\005image\030\001 \001(\t" + + "\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022O\n\003env\030\004" + + " \003(\0132B.google.cloud.workstations.v1.Work" + + "stationConfig.Container.EnvEntry\022\023\n\013work" + + "ing_dir\030\005 \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010En" + + "vEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I" + + "\n\025CustomerEncryptionKey\022\017\n\007kms_key\030\001 \001(\t" + + "\022\037\n\027kms_key_service_account\030\002 \001(\t\0322\n\020Ann" + + "otationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001:\261\001\352A\255\001\n-workstations.google" + + "apis.com/WorkstationConfig\022yprojects/{pr" + + "oject}/locations/{location}/workstationC" + + "lusters/{workstation_cluster}/workstatio" + + "nConfigs/{workstation_config}R\001\001\"\230\007\n\013Wor" + + "kstation\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002" + + " \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 " + + "\001(\010B\003\340A\003\022O\n\013annotations\030\005 \003(\0132:.google.c" + + "loud.workstations.v1.Workstation.Annotat" + + "ionsEntry\022E\n\006labels\030\r \003(\01325.google.cloud" + + ".workstations.v1.Workstation.LabelsEntry" + + "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\014\n\004etag\030\t \001(\t\022C\n\005state\030\n \001(\0162/.google" + + ".cloud.workstations.v1.Workstation.State" + + "B\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016S" + + "TATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016ST" + + "ATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352A\303\001" + + "\n\'workstations.googleapis.com/Workstatio" + + "n\022\224\001projects/{project}/locations/{locati" + + "on}/workstationClusters/{workstation_clu" + + "ster}/workstationConfigs/{workstation_co" + + "nfig}/workstations/{workstation}R\001\001\"d\n\034G" + + "etWorkstationClusterRequest\022D\n\004name\030\001 \001(" + + "\tB6\340A\002\372A0\n.workstations.googleapis.com/W" + + "orkstationCluster\"\217\001\n\036ListWorkstationClu" + + "stersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.wo" + + "rkstations.googleapis.com/WorkstationClu" + + "ster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\237\001\n\037ListWorkstationClustersResponse\022" + + "N\n\024workstation_clusters\030\001 \003(\01320.google.c" + + "loud.workstations.v1.WorkstationCluster\022" + + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + + "\003 \003(\t\"\371\001\n\037CreateWorkstationClusterReques" + + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workstations." + + "googleapis.com/WorkstationCluster\022#\n\026wor" + + "kstation_cluster_id\030\002 \001(\tB\003\340A\002\022R\n\023workst" + + "ation_cluster\030\003 \001(\01320.google.cloud.works" + + "tations.v1.WorkstationClusterB\003\340A\002\022\025\n\rva" + + "lidate_only\030\004 \001(\010\"\331\001\n\037UpdateWorkstationC" + + "lusterRequest\022R\n\023workstation_cluster\030\001 \001" + + "(\01320.google.cloud.workstations.v1.Workst" + + "ationClusterB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\022\025\n\rvalid" + + "ate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\"\233\001" + + "\n\037DeleteWorkstationClusterRequest\022D\n\004nam" + + "e\030\001 \001(\tB6\340A\002\372A0\n.workstations.googleapis" + + ".com/WorkstationCluster\022\025\n\rvalidate_only" + + "\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005force\030\004 \001(\010\"b\n\033G" + + "etWorkstationConfigRequest\022C\n\004name\030\001 \001(\t" + + "B5\340A\002\372A/\n-workstations.googleapis.com/Wo" + + "rkstationConfig\"\216\001\n\035ListWorkstationConfi" + + "gsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.works" + + "tations.googleapis.com/WorkstationCluste" + + "r\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\"\234\001\n\036ListWorkstationConfigsResponse\022L\n\023w" + + "orkstation_configs\030\001 \003(\0132/.google.cloud." + + "workstations.v1.WorkstationConfig\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + + "\224\001\n#ListUsableWorkstationConfigsRequest\022" + + "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.workstations.go" + + "ogleapis.com/WorkstationCluster\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n$ListU" + + "sableWorkstationConfigsResponse\022L\n\023works" + + "tation_configs\030\001 \003(\0132/.google.cloud.work" + + "stations.v1.WorkstationConfig\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\365\001\n\036" + + "CreateWorkstationConfigRequest\022F\n\006parent" + + "\030\001 \001(\tB6\340A\002\372A0\n.workstations.googleapis." + + "com/WorkstationCluster\022\"\n\025workstation_co" + + "nfig_id\030\002 \001(\tB\003\340A\002\022P\n\022workstation_config" + + "\030\003 \001(\0132/.google.cloud.workstations.v1.Wo" + + "rkstationConfigB\003\340A\002\022\025\n\rvalidate_only\030\004 " + + "\001(\010\"\326\001\n\036UpdateWorkstationConfigRequest\022P" + + "\n\022workstation_config\030\001 \001(\0132/.google.clou" + + "d.workstations.v1.WorkstationConfigB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n" + + "\rallow_missing\030\004 \001(\010\"\231\001\n\036DeleteWorkstati" + + "onConfigRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-w" + + "orkstations.googleapis.com/WorkstationCo" + + "nfig\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(" + + "\t\022\r\n\005force\030\004 \001(\010\"V\n\025GetWorkstationReques" + + "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstations.go" + + "ogleapis.com/Workstation\"\207\001\n\027ListWorksta" + + "tionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wo" + + "rkstations.googleapis.com/WorkstationCon" + + "fig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"\211\001\n\030ListWorkstationsResponse\022?\n\014works" + + "tations\030\001 \003(\0132).google.cloud.workstation" + + "s.v1.Workstation\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWor" + + "kstationsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/" + + "\n-workstations.googleapis.com/Workstatio" + + "nConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\217\001\n\036ListUsableWorkstationsRespons" + + "e\022?\n\014workstations\030\001 \003(\0132).google.cloud.w" + + "orkstations.v1.Workstation\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\332\001\n\030Cre" + + "ateWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\n-workstations.googleapis.com/Works" + + "tationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A" + + "\002\022C\n\013workstation\030\003 \001(\0132).google.cloud.wo" + + "rkstations.v1.WorkstationB\003\340A\002\022\025\n\rvalida" + + "te_only\030\004 \001(\010\"\303\001\n\030UpdateWorkstationReque" + + "st\022C\n\013workstation\030\001 \001(\0132).google.cloud.w" + + "orkstations.v1.WorkstationB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" + + "ssing\030\004 \001(\010\"~\n\030DeleteWorkstationRequest\022" + + "=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstations.goog" + + "leapis.com/Workstation\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorkstationR" + + "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" + + "ns.googleapis.com/Workstation\022\025\n\rvalidat" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026StopWorkst" + + "ationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'work" + + "stations.googleapis.com/Workstation\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\315\001\n\032Gen" + + "erateAccessTokenRequest\0221\n\013expire_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampH\000\022(\n\003tt" + + "l\030\003 \001(\0132\031.google.protobuf.DurationH\000\022D\n\013" + + "workstation\030\001 \001(\tB/\340A\002\372A)\n\'workstations." + + "googleapis.com/WorkstationB\014\n\nexpiration" + + "\"d\n\033GenerateAccessTokenResponse\022\024\n\014acces" + + "s_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\"\200\002\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" + + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + + "\0032\233*\n\014Workstations\022\315\001\n\025GetWorkstationClu" + + "ster\022:.google.cloud.workstations.v1.GetW" + + "orkstationClusterRequest\0320.google.cloud." + + "workstations.v1.WorkstationCluster\"F\202\323\344\223" + + "\0029\0227/v1/{name=projects/*/locations/*/wor" + + "kstationClusters/*}\332A\004name\022\340\001\n\027ListWorks" + + "tationClusters\022<.google.cloud.workstatio" + + "ns.v1.ListWorkstationClustersRequest\032=.g" + + "oogle.cloud.workstations.v1.ListWorkstat" + + "ionClustersResponse\"H\202\323\344\223\0029\0227/v1/{parent" + + "=projects/*/locations/*}/workstationClus" + + "ters\332A\006parent\022\255\002\n\030CreateWorkstationClust" + + "er\022=.google.cloud.workstations.v1.Create" + + "WorkstationClusterRequest\032\035.google.longr" + + "unning.Operation\"\262\001\202\323\344\223\002N\"7/v1/{parent=p" + + "rojects/*/locations/*}/workstationCluste" + + "rs:\023workstation_cluster\332A1parent,worksta" + + "tion_cluster,workstation_cluster_id\312A\'\n\022" + + "WorkstationCluster\022\021OperationMetadata\022\257\002" + + "\n\030UpdateWorkstationCluster\022=.google.clou" + + "d.workstations.v1.UpdateWorkstationClust" + + "erRequest\032\035.google.longrunning.Operation" + + "\"\264\001\202\323\344\223\002b2K/v1/{workstation_cluster.name" + + "=projects/*/locations/*/workstationClust" + + "ers/*}:\023workstation_cluster\332A\037workstatio" + + "n_cluster,update_mask\312A\'\n\022WorkstationClu" + + "ster\022\021OperationMetadata\022\352\001\n\030DeleteWorkst" + + "ationCluster\022=.google.cloud.workstations" + + ".v1.DeleteWorkstationClusterRequest\032\035.go" + + "ogle.longrunning.Operation\"p\202\323\344\223\0029*7/v1/" + + "{name=projects/*/locations/*/workstation" + + "Clusters/*}\332A\004name\312A\'\n\022WorkstationCluste" + + "r\022\021OperationMetadata\022\337\001\n\024GetWorkstationC" + + "onfig\0229.google.cloud.workstations.v1.Get" + + "WorkstationConfigRequest\032/.google.cloud." + + "workstations.v1.WorkstationConfig\"[\202\323\344\223\002" + + "N\022L/v1/{name=projects/*/locations/*/work" + + "stationClusters/*/workstationConfigs/*}\332" + + "A\004name\022\362\001\n\026ListWorkstationConfigs\022;.goog" + + "le.cloud.workstations.v1.ListWorkstation" + + "ConfigsRequest\032<.google.cloud.workstatio" + + "ns.v1.ListWorkstationConfigsResponse\"]\202\323" + + "\344\223\002N\022L/v1/{parent=projects/*/locations/*" + + "/workstationClusters/*}/workstationConfi" + + "gs\332A\006parent\022\217\002\n\034ListUsableWorkstationCon" + + "figs\022A.google.cloud.workstations.v1.List" + + "UsableWorkstationConfigsRequest\032B.google" + + ".cloud.workstations.v1.ListUsableWorksta" + + "tionConfigsResponse\"h\202\323\344\223\002Y\022W/v1/{parent" + + "=projects/*/locations/*/workstationClust" + + "ers/*}/workstationConfigs:listUsable\332A\006p" + + "arent\022\274\002\n\027CreateWorkstationConfig\022<.goog" + + "le.cloud.workstations.v1.CreateWorkstati" + + "onConfigRequest\032\035.google.longrunning.Ope" + + "ration\"\303\001\202\323\344\223\002b\"L/v1/{parent=projects/*/" + + "locations/*/workstationClusters/*}/works" + + "tationConfigs:\022workstation_config\332A/pare" + + "nt,workstation_config,workstation_config" + + "_id\312A&\n\021WorkstationConfig\022\021OperationMeta" + + "data\022\276\002\n\027UpdateWorkstationConfig\022<.googl" + + "e.cloud.workstations.v1.UpdateWorkstatio" + + "nConfigRequest\032\035.google.longrunning.Oper" + + "ation\"\305\001\202\323\344\223\002u2_/v1/{workstation_config." + + "name=projects/*/locations/*/workstationC" + + "lusters/*/workstationConfigs/*}:\022worksta" + + "tion_config\332A\036workstation_config,update_" + + "mask\312A&\n\021WorkstationConfig\022\021OperationMet" + + "adata\022\375\001\n\027DeleteWorkstationConfig\022<.goog" + + "le.cloud.workstations.v1.DeleteWorkstati" + + "onConfigRequest\032\035.google.longrunning.Ope" + + "ration\"\204\001\202\323\344\223\002N*L/v1/{name=projects/*/lo" + + "cations/*/workstationClusters/*/workstat" + + "ionConfigs/*}\332A\004name\312A&\n\021WorkstationConf" + + "ig\022\021OperationMetadata\022\334\001\n\016GetWorkstation" + + "\0223.google.cloud.workstations.v1.GetWorks" + + "tationRequest\032).google.cloud.workstation" + + "s.v1.Workstation\"j\202\323\344\223\002]\022[/v1/{name=proj" + + "ects/*/locations/*/workstationClusters/*" + + "/workstationConfigs/*/workstations/*}\332A\004" + + "name\022\357\001\n\020ListWorkstations\0225.google.cloud" + + ".workstations.v1.ListWorkstationsRequest" + + "\0326.google.cloud.workstations.v1.ListWork" + + "stationsResponse\"l\202\323\344\223\002]\022[/v1/{parent=pr" + + "ojects/*/locations/*/workstationClusters" + + "/*/workstationConfigs/*}/workstations\332A\006" + + "parent\022\214\002\n\026ListUsableWorkstations\022;.goog" + + "le.cloud.workstations.v1.ListUsableWorks" + + "tationsRequest\032<.google.cloud.workstatio" + + "ns.v1.ListUsableWorkstationsResponse\"w\202\323" + + "\344\223\002h\022f/v1/{parent=projects/*/locations/*" + + "/workstationClusters/*/workstationConfig" + + "s/*}/workstations:listUsable\332A\006parent\022\244\002" + + "\n\021CreateWorkstation\0226.google.cloud.works" + + "tations.v1.CreateWorkstationRequest\032\035.go" + + "ogle.longrunning.Operation\"\267\001\202\323\344\223\002j\"[/v1" + + "/{parent=projects/*/locations/*/workstat" + + "ionClusters/*/workstationConfigs/*}/work" + + "stations:\013workstation\332A!parent,workstati" + + "on,workstation_id\312A \n\013Workstation\022\021Opera" + + "tionMetadata\022\246\002\n\021UpdateWorkstation\0226.goo" + + "gle.cloud.workstations.v1.UpdateWorkstat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"\271\001\202\323\344\223\002v2g/v1/{workstation.name=projec" + + "ts/*/locations/*/workstationClusters/*/w" + + "orkstationConfigs/*/workstations/*}:\013wor" + + "kstation\332A\027workstation,update_mask\312A \n\013W" + + "orkstation\022\021OperationMetadata\022\372\001\n\021Delete" + + "Workstation\0226.google.cloud.workstations." + + "v1.DeleteWorkstationRequest\032\035.google.lon" + + "grunning.Operation\"\215\001\202\323\344\223\002]*[/v1/{name=p" + + "rojects/*/locations/*/workstationCluster" + + "s/*/workstationConfigs/*/workstations/*}" + + "\332A\004name\312A \n\013Workstation\022\021OperationMetada" + + "ta\022\201\002\n\020StartWorkstation\0225.google.cloud.w" + + "orkstations.v1.StartWorkstationRequest\032\035" + + ".google.longrunning.Operation\"\226\001\202\323\344\223\002f\"a" + + "/v1/{name=projects/*/locations/*/worksta" + + "tionClusters/*/workstationConfigs/*/work" + + "stations/*}:start:\001*\332A\004name\312A \n\013Workstat" + + "ion\022\021OperationMetadata\022\376\001\n\017StopWorkstati" + + "on\0224.google.cloud.workstations.v1.StopWo" + + "rkstationRequest\032\035.google.longrunning.Op" + + "eration\"\225\001\202\323\344\223\002e\"`/v1/{name=projects/*/l" + + "ocations/*/workstationClusters/*/worksta" + + "tionConfigs/*/workstations/*}:stop:\001*\332A\004" + + "name\312A \n\013Workstation\022\021OperationMetadata\022" + + "\234\002\n\023GenerateAccessToken\0228.google.cloud.w" + + "orkstations.v1.GenerateAccessTokenReques" + + "t\0329.google.cloud.workstations.v1.Generat" + + "eAccessTokenResponse\"\217\001\202\323\344\223\002{\"v/v1/{work" + + "station=projects/*/locations/*/workstati" + + "onClusters/*/workstationConfigs/*/workst" + + "ations/*}:generateAccessToken:\001*\332A\013works" + + "tation\032O\312A\033workstations.googleapis.com\322A" + + ".https://www.googleapis.com/auth/cloud-p" + + "latformB}\n com.google.cloud.workstations" + + ".v1B\021WorkstationsProtoP\001ZDcloud.google.c" + + "om/go/workstations/apiv1/workstationspb;" + + "workstationspbb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "Network", + "Subnetwork", + "PrivateClusterConfig", + "Degraded", + "Conditions", + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, + new java.lang.String[] { + "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "IdleTimeout", + "RunningTimeout", + "Host", + "PersistentDirectories", + "Container", + "EncryptionKey", + "Degraded", + "Conditions", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, + new java.lang.String[] { + "GceInstance", "Config", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, + new java.lang.String[] { + "MachineType", + "ServiceAccount", + "Tags", + "PoolSize", + "DisablePublicIpAddresses", + "EnableNestedVirtualization", + "ShieldedInstanceConfig", + "ConfidentialInstanceConfig", + "BootDiskSizeGb", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, + new java.lang.String[] { + "EnableConfidentialCompute", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, + new java.lang.String[] { + "GcePd", "MountPath", "DirectoryType", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, + new java.lang.String[] { + "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, + new java.lang.String[] { + "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, + new java.lang.String[] { + "KmsKey", "KmsKeyServiceAccount", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_Workstation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "State", + "Host", + }); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, + new java.lang.String[] { + "WorkstationClusters", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", "Force", + }); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, + new java.lang.String[] { + "WorkstationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, + new java.lang.String[] { + "WorkstationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", "Force", + }); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, + new java.lang.String[] { + "Workstations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, + new java.lang.String[] { + "Workstations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationId", "Workstation", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, + new java.lang.String[] { + "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, + new java.lang.String[] { + "ExpireTime", "Ttl", "Workstation", "Expiration", + }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, + new java.lang.String[] { + "AccessToken", "ExpireTime", + }); + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto b/java-workstations/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto rename to java-workstations/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java index 978888c56911..ebdec9786a4c 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -26,38 +45,45 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +92,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. Parent resource name.
    * 
* - * 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 { @@ -97,14 +125,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ @java.lang.Override @@ -113,29 +145,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -146,11 +178,16 @@ public java.lang.String getWorkstationClusterId() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -158,38 +195,55 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -198,6 +252,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +264,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_); } @@ -239,12 +293,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,24 +306,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.workstations.v1beta.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationClusterId() - .equals(other.getWorkstationClusterId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,137 +341,145 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest + 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.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(); @@ -439,14 +496,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + .getDefaultInstance(); } @java.lang.Override @@ -460,13 +519,17 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -475,9 +538,10 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -488,46 +552,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -570,34 +639,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -607,22 +680,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -631,20 +709,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -652,28 +733,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -683,17 +775,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,18 +801,20 @@ public Builder setParentBytes( private java.lang.Object workstationClusterId_ = ""; /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -723,20 +823,21 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -744,28 +845,35 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -775,17 +883,21 @@ public Builder clearWorkstationClusterId() { return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -795,41 +907,61 @@ public Builder setWorkstationClusterIdBytes( private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -843,11 +975,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -861,17 +997,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -884,11 +1026,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -901,61 +1047,82 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -963,29 +1130,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -994,9 +1167,9 @@ public Builder clearValidateOnly() { 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); } @@ -1006,41 +1179,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1227,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java index f1a7d3b9103b..d51142cf084c 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationClusterRequestOrBuilder extends +public interface CreateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString - getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString getWorkstationClusterIdBytes(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java index fa9f1c2284dc..ad81aa983574 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -26,38 +45,45 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +92,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. Parent resource name.
    * 
* - * 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 { @@ -97,14 +125,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** + * + * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ @java.lang.Override @@ -113,29 +145,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -146,11 +178,16 @@ public java.lang.String getWorkstationConfigId() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -158,38 +195,55 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -198,6 +252,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +264,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_); } @@ -239,12 +293,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,24 +306,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.workstations.v1beta.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationConfigId() - .equals(other.getWorkstationConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,137 +341,145 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest + 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.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(); @@ -439,14 +496,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -460,13 +519,17 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -475,9 +538,10 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -488,46 +552,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -570,34 +639,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -607,22 +680,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -631,20 +709,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -652,28 +733,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -683,17 +775,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,18 +801,20 @@ public Builder setParentBytes( private java.lang.Object workstationConfigId_ = ""; /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -723,20 +823,21 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -744,28 +845,35 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -775,17 +883,21 @@ public Builder clearWorkstationConfigId() { return this; } /** + * + * *
      * Required. ID to use for the config.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -795,41 +907,61 @@ public Builder setWorkstationConfigIdBytes( private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -843,11 +975,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.Worksta return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -861,17 +997,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -884,11 +1026,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.Works return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -901,61 +1047,82 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -963,29 +1130,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -994,9 +1167,9 @@ public Builder clearValidateOnly() { 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); } @@ -1006,41 +1179,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1227,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java index 6f2163a758aa..5a0a2f79f046 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationConfigRequestOrBuilder extends +public interface CreateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** + * + * *
    * Required. ID to use for the config.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString - getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString getWorkstationConfigIdBytes(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java index a86de58319cd..d99d750626ac 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -26,38 +44,45 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -97,14 +124,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ @java.lang.Override @@ -113,29 +144,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -146,11 +177,16 @@ public java.lang.String getWorkstationId() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -158,38 +194,54 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -198,6 +250,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +262,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_); } @@ -239,12 +291,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,24 +304,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.workstations.v1beta.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = + (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationId() - .equals(other.getWorkstationId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationId().equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,137 +339,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.CreateWorkstationRequest) com.google.cloud.workstations.v1beta.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationRequest.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(); @@ -439,13 +492,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance(); } @@ -460,13 +514,17 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = + new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -475,9 +533,8 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -488,38 +545,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -527,7 +585,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -570,34 +630,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -607,22 +670,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -631,20 +699,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -652,28 +723,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -683,17 +765,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,18 +791,20 @@ public Builder setParentBytes( private java.lang.Object workstationId_ = ""; /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -723,20 +813,21 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -744,28 +835,35 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -775,17 +873,21 @@ public Builder clearWorkstationId() { return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -795,39 +897,58 @@ public Builder setWorkstationIdBytes( private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -843,11 +964,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -861,17 +986,22 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstation_ != null + && workstation_ + != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -884,11 +1014,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -901,11 +1035,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -913,49 +1051,64 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -963,29 +1116,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -994,9 +1153,9 @@ public Builder clearValidateOnly() { 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); } @@ -1006,12 +1165,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(); } @@ -1020,27 +1180,27 @@ public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1215,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java index edc1a25c09f9..533557c89d4c 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationRequestOrBuilder extends +public interface CreateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ java.lang.String getWorkstationId(); /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString - getWorkstationIdBytes(); + com.google.protobuf.ByteString getWorkstationIdBytes(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java index 9fb43202ccb7..25a419b17ace 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -26,38 +45,45 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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 @@ -66,29 +92,31 @@ 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. Name of the workstation cluster to delete.
    * 
* - * 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 { @@ -99,11 +127,14 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -112,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -129,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -163,6 +198,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -170,6 +207,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -178,6 +216,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +228,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_); } @@ -216,15 +254,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +270,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.workstations.v1beta.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,142 +296,149 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest + 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.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(); @@ -411,14 +451,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + .getDefaultInstance(); } @java.lang.Override @@ -432,13 +474,17 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -458,46 +504,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -540,32 +591,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -575,22 +631,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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; @@ -599,20 +660,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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 { @@ -620,28 +684,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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() { @@ -651,17 +726,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -669,13 +750,16 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -683,27 +767,33 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -715,19 +805,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -736,21 +828,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -758,30 +851,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -791,18 +891,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -810,8 +914,10 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -819,6 +925,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -826,6 +933,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -833,17 +942,20 @@ public boolean getForce() {
      * 
* * bool force = 4; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -851,6 +963,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -859,9 +972,9 @@ public Builder clearForce() { 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); } @@ -871,41 +984,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +1032,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java index 95a74336f7ee..41d2bcf52e1b 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,65 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationClusterRequestOrBuilder extends +public interface DeleteWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -67,6 +102,7 @@ public interface DeleteWorkstationClusterRequestOrBuilder extends
    * 
* * bool force = 4; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java similarity index 64% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java index 557d18caa9d6..b1b7c188c03a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -26,38 +45,45 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the config to delete.
    * 
* - * 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 @@ -66,29 +92,31 @@ 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. Name of the config to delete.
    * 
* - * 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 { @@ -99,12 +127,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +144,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +165,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -164,12 +199,15 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * If set, any Workstations in the config will also be deleted. Otherwise,
    * the request will work only if the config has no workstations.
    * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -178,6 +216,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +228,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_); } @@ -216,15 +254,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +270,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.workstations.v1beta.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,142 +296,149 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().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()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest + 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.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(); @@ -411,14 +451,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -432,13 +474,17 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -458,46 +504,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -540,32 +591,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -575,22 +631,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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; @@ -599,20 +660,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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 { @@ -620,28 +684,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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() { @@ -651,17 +726,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the config to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -669,14 +750,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -684,29 +768,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -718,19 +808,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -739,21 +831,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -761,30 +854,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -794,18 +894,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the config on
      * the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -813,14 +917,17 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; + * * @return The force. */ @java.lang.Override @@ -828,29 +935,35 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, any Workstations in the config will also be deleted. Otherwise,
      * the request will work only if the config has no workstations.
      * 
* * bool force = 4; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -859,9 +972,9 @@ public Builder clearForce() { 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); } @@ -871,41 +984,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +1032,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java index 373801622c51..fb167b7595bb 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,72 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationConfigRequestOrBuilder extends +public interface DeleteWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the config to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the config to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the config on
    * the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * If set, any Workstations in the config will also be deleted. Otherwise,
    * the request will work only if the config has no workstations.
    * 
* * bool force = 4; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java index 32e9b2f233f6..04334e636837 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,45 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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 @@ -66,29 +91,31 @@ 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. Name of the workstation to delete.
    * 
* - * 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -211,19 +244,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.workstations.v1beta.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = + (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +269,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -248,129 +278,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.DeleteWorkstationRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.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(); @@ -382,13 +419,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance(); } @@ -403,13 +441,17 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = + new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -426,38 +468,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +508,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +550,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,22 +584,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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; @@ -559,20 +613,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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 { @@ -580,28 +637,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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() { @@ -611,17 +679,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,14 +703,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -644,29 +721,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -678,19 +761,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -699,21 +784,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -721,30 +807,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -754,27 +847,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -784,12 +881,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(); } @@ -798,27 +896,27 @@ public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java index 6ab851cf5373..7f39eea8b194 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationRequestOrBuilder extends +public interface DeleteWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java index 7e88bdfe1dbc..93d127abc9ff 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; private java.lang.Object expiration_; + public enum ExpirationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; + private ExpirationCase(int value) { this.value = value; } @@ -72,33 +94,42 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: return EXPIRE_TIME; - case 3: return TTL; - case 0: return EXPIRATION_NOT_SET; - default: return null; + case 2: + return EXPIRE_TIME; + case 3: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public static final int WORKSTATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object workstation_ = ""; /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ @java.lang.Override @@ -107,30 +138,32 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -140,6 +173,8 @@ public java.lang.String getWorkstation() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -148,6 +183,7 @@ public java.lang.String getWorkstation() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -155,6 +191,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -163,16 +201,19 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -185,13 +226,15 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-       return (com.google.protobuf.Timestamp) expiration_;
+      return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -199,6 +242,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -206,6 +250,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -213,16 +259,19 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -234,12 +283,13 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-       return (com.google.protobuf.Duration) expiration_;
+      return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -251,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workstation_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_);
     }
@@ -275,12 +324,14 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_);
     }
     if (expirationCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.protobuf.Timestamp) expiration_);
     }
     if (expirationCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.protobuf.Duration) expiration_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.protobuf.Duration) expiration_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -290,24 +341,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.workstations.v1beta.GenerateAccessTokenRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj;
+    com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other =
+        (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj;
 
-    if (!getWorkstation()
-        .equals(other.getWorkstation())) return false;
+    if (!getWorkstation().equals(other.getWorkstation())) return false;
     if (!getExpirationCase().equals(other.getExpirationCase())) return false;
     switch (expirationCase_) {
       case 2:
-        if (!getExpireTime()
-            .equals(other.getExpireTime())) return false;
+        if (!getExpireTime().equals(other.getExpireTime())) return false;
         break;
       case 3:
-        if (!getTtl()
-            .equals(other.getTtl())) return false;
+        if (!getTtl().equals(other.getTtl())) return false;
         break;
       case 0:
       default:
@@ -343,129 +392,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) com.google.cloud.workstations.v1beta.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.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(); @@ -483,13 +539,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance(); } @@ -504,29 +561,32 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = + new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.workstation_ = workstation_; } } - private void buildPartialOneofs(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && - expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && - ttlBuilder_ != null) { + if (expirationCase_ == 3 && ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -535,63 +595,70 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.GenerateAcc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { - if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { + if (other + == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) + return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: { - break; - } + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -619,31 +686,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getTtlFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 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) { @@ -653,12 +720,12 @@ public Builder mergeFrom( } // finally return this; } + private int expirationCase_ = 0; private java.lang.Object expiration_; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public Builder clearExpiration() { @@ -672,19 +739,23 @@ public Builder clearExpiration() { private java.lang.Object workstation_ = ""; /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -693,21 +764,24 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -715,30 +789,41 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -748,18 +833,24 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000001; @@ -768,8 +859,13 @@ public Builder setWorkstationBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -778,6 +874,7 @@ public Builder setWorkstationBytes(
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -785,6 +882,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -793,6 +892,7 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -810,6 +910,8 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -833,6 +935,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -842,8 +946,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -854,6 +957,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -865,10 +970,12 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2 &&
-            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 2
+            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -884,6 +991,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -910,6 +1019,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -923,6 +1034,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -944,6 +1057,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -954,17 +1069,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_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>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_,
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -973,8 +1091,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        ttlBuilder_;
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -982,6 +1105,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -989,6 +1113,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -996,6 +1122,7 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override @@ -1013,6 +1140,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1035,6 +1164,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1043,8 +1174,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -1055,6 +1185,8 @@ public Builder setTtl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1065,10 +1197,12 @@ public Builder setTtl(
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3 &&
-            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 3
+            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -1084,6 +1218,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1109,6 +1245,8 @@ public Builder clearTtl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1121,6 +1259,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1141,6 +1281,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1150,26 +1292,29 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     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>
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_,
-                getParentForChildren(),
-                isClean());
+        ttlBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
       onChanged();
       return ttlBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1179,41 +1324,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest)
-  private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest();
   }
 
-  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstance() {
+  public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GenerateAccessTokenRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GenerateAccessTokenRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1225,9 +1372,8 @@ public com.google.protobuf.Parser getParserForType()
   }
 
   @java.lang.Override
-  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() {
+  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
index a4ff337a51d0..36fee83bf830 100644
--- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
+++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java
@@ -1,35 +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/workstations/v1beta/workstations.proto
 
 package com.google.cloud.workstations.v1beta;
 
-public interface GenerateAccessTokenRequestOrBuilder extends
+public interface GenerateAccessTokenRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ java.lang.String getWorkstation(); /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - com.google.protobuf.ByteString - getWorkstationBytes(); + com.google.protobuf.ByteString getWorkstationBytes(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -38,10 +65,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -50,10 +80,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -66,6 +99,8 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -73,10 +108,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -84,10 +122,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -98,5 +139,6 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    */
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
-  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase getExpirationCase();
+  public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase
+      getExpirationCase();
 }
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
similarity index 68%
rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
index e75da36be6eb..fe285b0f20e6 100644
--- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
+++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java
@@ -1,57 +1,79 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workstations/v1beta/workstations.proto
 
 package com.google.cloud.workstations.v1beta;
 
 /**
+ *
+ *
  * 
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -60,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string access_token = 1; + * * @return The accessToken. */ @java.lang.Override @@ -68,14 +91,15 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -84,16 +108,15 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -104,11 +127,14 @@ public java.lang.String getAccessToken() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -116,11 +142,14 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -128,6 +157,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Time at which the generated token will expire.
    * 
@@ -140,6 +171,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +183,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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -172,8 +203,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -183,19 +213,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.workstations.v1beta.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = + (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; - if (!getAccessToken() - .equals(other.getAccessToken())) return false; + if (!getAccessToken().equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -220,129 +249,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) com.google.cloud.workstations.v1beta.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.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(); @@ -357,13 +393,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -378,21 +415,23 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse build() @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = + new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } } @@ -400,46 +439,50 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { - if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { + if (other + == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) + return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -474,24 +517,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -501,10 +545,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object accessToken_ = ""; /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -513,13 +560,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; + * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -528,6 +575,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -536,15 +585,14 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -552,6 +600,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -560,18 +610,22 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -580,6 +634,7 @@ public Builder setAccessToken(
      * 
* * string access_token = 1; + * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -589,6 +644,8 @@ public Builder clearAccessToken() { return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -597,12 +654,14 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; + * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -612,34 +671,47 @@ public Builder setAccessTokenBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -660,14 +732,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -678,6 +751,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -686,9 +761,9 @@ public Builder setExpireTime( */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -701,6 +776,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -718,6 +795,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -730,6 +809,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -740,11 +821,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -752,21 +836,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -776,41 +863,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +911,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java index cef295e3c5e3..e241a80c9b6b 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface GenerateAccessTokenResponseOrBuilder extends +public interface GenerateAccessTokenResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The accessToken. */ java.lang.String getAccessToken(); /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -28,30 +49,38 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString - getAccessTokenBytes(); + com.google.protobuf.ByteString getAccessTokenBytes(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java similarity index 59% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java index a699a1f34a33..28d7b0098f38 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java @@ -1,62 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -65,29 +90,31 @@ 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. Name of the requested resource.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.workstations.v1beta.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) 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,129 +187,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest + 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) com.google.cloud.workstations.v1beta.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.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(); @@ -292,13 +328,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -313,13 +350,17 @@ public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,46 +371,50 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationCl public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +446,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,22 +468,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -445,20 +497,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -466,28 +521,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -497,26 +563,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -526,41 +598,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,9 +646,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..383af720206e --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +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/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java index 4858c6ac9c5e..1133f4c5f4a9 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java @@ -1,62 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -65,29 +90,31 @@ 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. Name of the requested resource.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.workstations.v1beta.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) 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,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) com.google.cloud.workstations.v1beta.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.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(); @@ -292,13 +326,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -313,13 +348,17 @@ public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -330,46 +369,50 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationCo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +444,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,22 +466,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -445,20 +495,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -466,28 +519,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -497,26 +561,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -526,41 +596,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,9 +644,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..ef6852654ac7 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +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/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java index c3b3ed2ab4e1..6f3c5068b0ec 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java @@ -1,62 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationRequest) GetWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -65,29 +90,31 @@ 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. Name of the requested resource.
    * 
* - * 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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,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_); } @@ -132,15 +159,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.workstations.v1beta.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationRequest other = + (com.google.cloud.workstations.v1beta.GetWorkstationRequest) 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,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GetWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.GetWorkstationRequest) com.google.cloud.workstations.v1beta.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationRequest.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(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.workstations.v1beta.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GetWorkstationRequest result = + new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + 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,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) private static final com.google.cloud.workstations.v1beta.GetWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..937af8ffac9f --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java @@ -0,0 +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/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java index cc13b5e9d7ca..496ae38db857 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +46,45 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +93,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +144,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +164,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +195,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +207,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_); } @@ -194,8 +230,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_); @@ -208,19 +243,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.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +278,139 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest + 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.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(); @@ -378,19 +422,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -399,13 +446,17 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,46 +473,52 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)other); + if (other + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +558,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +592,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +621,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +645,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +687,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +711,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +728,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +766,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +788,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +810,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +848,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +881,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +930,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java index 59b7856c2ce2..eadae7cec1b2 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsRequestOrBuilder extends +public interface ListUsableWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java index 451c71f9adc6..c8100e800e43 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,100 +47,124 @@ private ListUsableWorkstationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder + .class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List workstationConfigs_; + private java.util.List + workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +173,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +205,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +252,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { for (int i = 0; i < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -245,8 +300,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +322,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.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +361,139 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse + 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.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(); @@ -448,19 +512,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -468,15 +535,20 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + buildPartial() { + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -493,7 +565,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +577,52 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)other); + if (other + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + .getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -562,9 +641,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstat workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -611,36 +691,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,28 +734,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + workstationConfigs_ = java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -679,11 +774,14 @@ public java.util.List ge } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -693,11 +791,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -707,11 +808,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -728,11 +832,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -746,13 +853,17 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,11 +877,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -787,11 +901,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -805,11 +922,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -823,18 +943,21 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -842,11 +965,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -859,11 +985,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -876,39 +1005,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigsBuilder(int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1055,62 @@ public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkst } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( - int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder(int index) { + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1122,21 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorksta private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1145,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1168,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1208,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1231,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1284,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1377,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1410,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1459,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java index ee1df19e661a..ba4f13fd0fad 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsResponseOrBuilder extends +public interface ListUsableWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java index 00acd1e78efb..be2239a5de45 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +142,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +162,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,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_); } @@ -194,8 +228,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_); @@ -208,19 +241,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.workstations.v1beta.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +275,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest + 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.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(); @@ -378,14 +418,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + .getDefaultInstance(); } @java.lang.Override @@ -399,13 +441,17 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,46 +468,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +552,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +586,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +615,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +639,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +681,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +705,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +722,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +760,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +782,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +804,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +842,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +875,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +923,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java index 791aec409cdf..9c8c4043cda1 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsRequestOrBuilder extends +public interface ListUsableWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java similarity index 71% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java index fa12ce94c13e..24ed6ef2c5c7 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +46,37 @@ private ListUsableWorkstationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -65,6 +88,8 @@ public java.util.List getWorks return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -72,11 +97,13 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -88,6 +115,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -99,6 +128,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -112,15 +143,19 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +196,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +243,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +271,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -245,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +312,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.workstations.v1beta.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +350,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse + 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.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(); @@ -448,14 +500,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + .getDefaultInstance(); } @java.lang.Override @@ -469,14 +523,18 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -493,7 +551,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +563,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + .getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -562,9 +626,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstat workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -611,36 +676,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,21 +719,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList( + workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -679,6 +757,8 @@ public java.util.List getWorks } } /** + * + * *
      * The requested workstations.
      * 
@@ -693,6 +773,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -707,6 +789,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** + * + * *
      * The requested workstations.
      * 
@@ -728,6 +812,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -746,6 +832,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -766,6 +854,8 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -787,6 +877,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -805,6 +897,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -823,6 +917,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -833,8 +929,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -842,6 +937,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -859,6 +956,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -876,6 +975,8 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -887,6 +988,8 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -896,19 +999,22 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1022,8 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** + * + * *
      * The requested workstations.
      * 
@@ -923,10 +1031,12 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
@@ -935,30 +1045,35 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -966,19 +1081,21 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1104,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1127,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1167,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1190,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1243,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1336,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1369,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1417,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java index 2574a0b6563a..9e6cd7b574a1 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsResponseOrBuilder extends +public interface ListUsableWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java index eb21788198bc..c9b5de6d1a69 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +45,45 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +92,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +127,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +143,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +163,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +194,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -194,8 +229,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_); @@ -208,19 +242,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.workstations.v1beta.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = + (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +276,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest + 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) com.google.cloud.workstations.v1beta.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.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(); @@ -378,14 +419,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + .getDefaultInstance(); } @java.lang.Override @@ -399,13 +442,17 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = + new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,46 +469,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +553,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +587,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +616,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +640,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +682,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +706,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +723,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +761,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +783,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +805,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +843,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +876,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +924,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java index 365c0220ff98..0c149c0553c4 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersRequestOrBuilder extends +public interface ListWorkstationClustersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java index e7240cc7fb54..dee4842d8e8f 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,100 +46,123 @@ private ListWorkstationClustersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List workstationClusters_; + private java.util.List + workstationClusters_; /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +171,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +203,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +250,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { for (int i = 0; i < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -245,8 +298,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationClusters_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +320,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.workstations.v1beta.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = + (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList() - .equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +358,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse + 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) com.google.cloud.workstations.v1beta.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.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(); @@ -448,14 +508,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + .getDefaultInstance(); } @java.lang.Override @@ -469,14 +531,18 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buil @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = + new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -493,7 +559,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +571,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + .getDefaultInstance()) return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -562,9 +634,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClu workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationClustersFieldBuilder() : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationClustersFieldBuilder() + : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -611,36 +684,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,28 +727,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationClusters_ = - java.util.Collections.emptyList(); + private java.util.List + workstationClusters_ = java.util.Collections.emptyList(); + private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = new java.util.ArrayList(workstationClusters_); + workstationClusters_ = + new java.util.ArrayList( + workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClustersBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + workstationClustersBuilder_; /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -679,11 +767,14 @@ public java.util.List g } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -693,13 +784,17 @@ public int getWorkstationClustersCount() { } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters( + int index) { if (workstationClustersBuilder_ == null) { return workstationClusters_.get(index); } else { @@ -707,11 +802,14 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClu } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -728,14 +826,18 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( - int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.set(index, builderForValue.build()); @@ -746,13 +848,17 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public Builder addWorkstationClusters(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder addWorkstationClusters( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,11 +872,14 @@ public Builder addWorkstationClusters(com.google.cloud.workstations.v1beta.Works return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -787,11 +896,14 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -805,14 +917,18 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( - int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.add(index, builderForValue.build()); @@ -823,18 +939,21 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addAllWorkstationClusters( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -842,11 +961,14 @@ public Builder addAllWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -859,11 +981,14 @@ public Builder clearWorkstationClusters() { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -876,39 +1001,50 @@ public Builder removeWorkstationClusters(int index) { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClustersBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + getWorkstationClustersBuilder(int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); } else { + return workstationClusters_.get(index); + } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1052,62 @@ public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorks } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder( - int index) { - return getWorkstationClustersFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + addWorkstationClustersBuilder(int index) { + return getWorkstationClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1119,21 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkst private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1142,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1165,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1205,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1228,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1281,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1374,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1407,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1455,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java index 1677fecb41ee..c5080a63d007 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersResponseOrBuilder extends +public interface ListWorkstationClustersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List + java.util.List getWorkstationClustersList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ int getWorkstationClustersCount(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java index b1909740866e..e0cf8790ad68 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +142,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +162,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,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_); } @@ -194,8 +228,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_); @@ -208,19 +241,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.workstations.v1beta.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +275,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest + 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.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(); @@ -378,14 +418,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + .getDefaultInstance(); } @java.lang.Override @@ -399,13 +441,17 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,46 +468,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +552,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +586,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +615,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +639,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +681,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +705,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +722,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +760,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +782,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +804,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +842,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,41 +875,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,9 +923,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java index f6b3d8492219..afcc311c6758 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsRequestOrBuilder extends +public interface ListWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java index 4d9e49ae3355..7d7f07cd8b78 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,100 +46,123 @@ private ListWorkstationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List workstationConfigs_; + private java.util.List + workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +171,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +203,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +250,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,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 { for (int i = 0; i < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -245,8 +298,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +320,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.workstations.v1beta.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +358,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse + 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.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(); @@ -448,14 +508,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -469,14 +531,18 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -493,7 +559,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,46 +571,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + .getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -562,9 +634,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationCon workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -611,36 +684,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,28 +727,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + workstationConfigs_ = java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -679,11 +767,14 @@ public java.util.List ge } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -693,11 +784,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -707,11 +801,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -728,11 +825,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -746,13 +846,17 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,11 +870,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -787,11 +894,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -805,11 +915,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -823,18 +936,21 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -842,11 +958,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -859,11 +978,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -876,39 +998,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigsBuilder(int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -916,45 +1048,62 @@ public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkst } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( - int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder(int index) { + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1115,21 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorksta private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1138,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1161,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1201,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1224,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1277,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1370,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,41 +1403,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,9 +1451,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java index 061c38b5ea1b..36a29daf493c 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsResponseOrBuilder extends +public interface ListWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java index 01f964d173bb..abe3e0f63f97 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -66,29 +91,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. Parent resource name.
    * 
* - * 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 { @@ -99,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,14 +142,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -128,29 +162,29 @@ 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; } } /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,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_); } @@ -194,8 +228,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_); @@ -208,19 +241,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.workstations.v1beta.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = + (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,129 +275,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationsRequest) com.google.cloud.workstations.v1beta.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsRequest.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(); @@ -378,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance(); } @@ -399,13 +438,17 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = + new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -422,38 +465,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstations public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) other); } else { super.mergeFrom(other); return this; @@ -461,7 +505,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -501,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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) { @@ -531,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -555,20 +610,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -576,28 +634,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -607,17 +676,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -625,13 +700,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -639,27 +717,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of items to return.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -671,18 +755,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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; @@ -691,20 +777,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @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 { @@ -712,28 +799,35 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,26 +837,30 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * next_page_token value returned from a previous List request, if any.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -772,12 +870,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(); } @@ -786,27 +885,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -821,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java index 759a8d0cd372..5c7811c58f6b 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsRequestOrBuilder extends +public interface ListWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Maximum number of items to return.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * next_page_token value returned from a previous List request, if any.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java similarity index 72% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java index ced98b78b7c3..98ce26f821d9 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListWorkstationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -65,6 +87,8 @@ public java.util.List getWorks return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -72,11 +96,13 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -88,6 +114,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -112,15 +142,19 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +163,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, or empty if there are no more
    * results in the list.
    * 
* * 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 { @@ -161,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +242,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +270,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -245,8 +290,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +311,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.workstations.v1beta.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = + (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +349,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.ListWorkstationsResponse) com.google.cloud.workstations.v1beta.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsResponse.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,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance(); } @@ -469,14 +519,18 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = + new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -493,7 +547,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,38 +559,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstations public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +599,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) + return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -562,9 +620,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRe workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -611,36 +670,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -650,21 +713,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList( + workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -679,6 +751,8 @@ public java.util.List getWorks } } /** + * + * *
      * The requested workstations.
      * 
@@ -693,6 +767,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -707,6 +783,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** + * + * *
      * The requested workstations.
      * 
@@ -728,6 +806,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -746,6 +826,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -766,6 +848,8 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -787,6 +871,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -805,6 +891,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -823,6 +911,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -833,8 +923,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -842,6 +931,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -859,6 +950,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -876,6 +969,8 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -887,6 +982,8 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -896,19 +993,22 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1016,8 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** + * + * *
      * The requested workstations.
      * 
@@ -923,10 +1025,12 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
@@ -935,30 +1039,35 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -966,19 +1075,21 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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; @@ -987,21 +1098,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * 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 { @@ -1009,30 +1121,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1161,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no more
      * results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1184,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1237,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1330,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.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); } @@ -1212,12 +1363,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(); } @@ -1226,27 +1378,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +1413,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java index deef245c0fe1..771a541e8af9 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsResponseOrBuilder extends +public interface ListWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no more
    * results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java index eb59b29cc9cb..38df5b8e41b5 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, + com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time that 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 @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time that 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 @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time that 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() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,12 +324,15 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -285,14 +341,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -301,29 +361,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -332,6 +392,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,8 +404,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()); } @@ -376,12 +436,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -393,8 +451,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -407,33 +464,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.workstations.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.OperationMetadata other = (com.google.cloud.workstations.v1beta.OperationMetadata) obj; + com.google.cloud.workstations.v1beta.OperationMetadata other = + (com.google.cloud.workstations.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,8 +511,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -470,129 +520,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.OperationMetadata) com.google.cloud.workstations.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, + com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.OperationMetadata.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(); @@ -616,9 +673,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -637,8 +694,11 @@ public com.google.cloud.workstations.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1beta.OperationMetadata result = new com.google.cloud.workstations.v1beta.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.OperationMetadata result = + new com.google.cloud.workstations.v1beta.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -646,14 +706,10 @@ public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -676,38 +732,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata)other); + return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -715,7 +772,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -771,51 +829,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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) { @@ -825,43 +887,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. Time that 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. Time that 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. Time that 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) { @@ -877,14 +959,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that 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(); } else { @@ -895,17 +980,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time that 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 (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -918,11 +1007,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that 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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -935,11 +1028,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time that 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() { bitField0_ |= 0x00000001; @@ -947,36 +1044,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that 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. Time that 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_; @@ -984,24 +1093,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1012,11 +1132,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1032,14 +1155,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1050,17 +1175,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1073,11 +1201,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1090,11 +1221,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1102,36 +1236,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.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> 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_; @@ -1139,18 +1281,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1159,20 +1303,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1180,28 +1325,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1211,17 +1363,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1231,18 +1387,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1251,20 +1409,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1272,28 +1431,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1303,17 +1469,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1323,18 +1493,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1343,20 +1515,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1364,28 +1537,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1395,17 +1575,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1413,14 +1597,17 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1428,29 +1615,35 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1462,18 +1655,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1482,20 +1677,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1503,28 +1699,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1534,26 +1737,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1563,12 +1770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.OperationMetadata) private static final com.google.cloud.workstations.v1beta.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.OperationMetadata(); } @@ -1577,27 +1784,27 @@ public static com.google.cloud.workstations.v1beta.OperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,6 +1819,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java index 396fa0fb8a60..fd274b56bbc0 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java @@ -1,154 +1,215 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Time that 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. Time that 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. Time that 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(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java index 5e144dc03852..afd26e3d3ce7 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StartWorkstationRequest) StartWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,45 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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 @@ -66,29 +91,31 @@ 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. Name of the workstation to start.
    * 
* - * 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -211,19 +244,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.workstations.v1beta.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StartWorkstationRequest other = (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StartWorkstationRequest other = + (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +269,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -248,129 +278,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.StartWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.StartWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.StartWorkstationRequest) com.google.cloud.workstations.v1beta.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StartWorkstationRequest.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(); @@ -382,13 +419,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.StartWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance(); } @@ -403,13 +441,17 @@ public com.google.cloud.workstations.v1beta.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StartWorkstationRequest result = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.StartWorkstationRequest result = + new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -426,38 +468,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.StartWorkstation public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +508,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StartWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +550,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,22 +584,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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; @@ -559,20 +613,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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 { @@ -580,28 +637,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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() { @@ -611,17 +679,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,14 +703,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -644,29 +721,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -678,19 +761,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -699,21 +784,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -721,30 +807,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -754,27 +847,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -784,12 +881,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(); } @@ -798,27 +896,27 @@ public static com.google.cloud.workstations.v1beta.StartWorkstationRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +931,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java index 24ba8fc89878..fc45a5e2b33c 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StartWorkstationRequestOrBuilder extends +public interface StartWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java index fdfed57ef15b..e9d74a60b1cf 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StopWorkstationRequest) StopWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,38 +44,45 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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 @@ -66,29 +91,31 @@ 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. Name of the workstation to stop.
    * 
* - * 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 { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -113,15 +143,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -130,30 +164,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -162,6 +196,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -197,8 +231,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -211,19 +244,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.workstations.v1beta.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StopWorkstationRequest other = (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StopWorkstationRequest other = + (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,8 +269,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -248,129 +278,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.StopWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.StopWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.StopWorkstationRequest) com.google.cloud.workstations.v1beta.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StopWorkstationRequest.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(); @@ -382,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -403,8 +440,11 @@ public com.google.cloud.workstations.v1beta.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StopWorkstationRequest result = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.StopWorkstationRequest result = + new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.StopWorkstationR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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,22 +581,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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; @@ -559,20 +610,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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 { @@ -580,28 +634,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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() { @@ -611,17 +676,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -629,14 +700,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -644,29 +718,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -678,19 +758,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -699,21 +781,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -721,30 +804,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -754,27 +844,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this etag.
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -784,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) private static final com.google.cloud.workstations.v1beta.StopWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(); } @@ -798,27 +892,27 @@ public static com.google.cloud.workstations.v1beta.StopWorkstationRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java index 13f7e57743e8..fc4d20b5f42b 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StopWorkstationRequestOrBuilder extends +public interface StopWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this etag.
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java index ce470b2e8085..ae1c81cb2b79 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java @@ -1,60 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationClusterRequest() { - } + + private UpdateWorkstationClusterRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -62,38 +86,56 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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 @@ -101,12 +143,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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 @@ -114,12 +160,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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() { @@ -129,12 +178,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +197,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set, and the workstation cluster is not found, a new workstation
    * cluster will be created. In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -159,6 +214,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +226,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -194,20 +249,16 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +268,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.workstations.v1beta.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,140 +306,147 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest + 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.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(); @@ -412,14 +467,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + .getDefaultInstance(); } @java.lang.Override @@ -433,23 +490,26 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -463,46 +523,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + .getDefaultInstance()) return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -541,36 +606,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -580,45 +647,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -632,11 +720,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -650,17 +742,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -673,11 +771,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -690,48 +792,66 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -739,42 +859,58 @@ public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorks 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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) { @@ -790,15 +926,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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(); } else { @@ -809,18 +947,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -833,12 +974,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -851,12 +995,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -864,51 +1011,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -916,29 +1076,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -948,14 +1114,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -963,29 +1132,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, and the workstation cluster is not found, a new workstation
      * cluster will be created. In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -994,9 +1169,9 @@ public Builder clearAllowMissing() { 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); } @@ -1006,41 +1181,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,9 +1229,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java index 8831e9d1fb0d..7aa9c7de9091 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,87 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationClusterRequestOrBuilder extends +public interface UpdateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .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(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, and the workstation cluster is not found, a new workstation
    * cluster will be created. In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java index ecf1f7d00f28..d2cbed064bef 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java @@ -1,60 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationConfigRequest() { - } + + private UpdateWorkstationConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -62,37 +86,55 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -100,11 +142,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -112,11 +158,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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() { @@ -126,12 +175,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -142,12 +194,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -156,6 +211,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +223,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -191,20 +246,16 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,27 +265,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.workstations.v1beta.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,140 +303,147 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest + 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.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(); @@ -409,14 +464,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -430,23 +487,26 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -460,46 +520,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + .getDefaultInstance()) return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -538,36 +603,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -577,45 +644,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -629,11 +717,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.Worksta return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -647,17 +739,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -670,11 +768,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.Works return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -687,48 +789,66 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -736,39 +856,55 @@ public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkst 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. Mask specifying which fields in the config should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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) { @@ -784,14 +920,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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(); } else { @@ -802,17 +940,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -825,11 +966,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -842,11 +986,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -854,49 +1001,62 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -904,29 +1064,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -936,14 +1102,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -951,29 +1120,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -982,9 +1157,9 @@ public Builder clearAllowMissing() { 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); } @@ -994,41 +1169,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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,9 +1217,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java index d89cf784cebe..05d06ef3b1e0 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,84 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationConfigRequestOrBuilder extends +public interface UpdateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java similarity index 64% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java index 7e09bf6858a1..9de4b9fb3adc 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java @@ -1,60 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationRequest() { - } + + private UpdateWorkstationRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -62,37 +85,54 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -100,11 +140,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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 @@ -112,11 +156,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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() { @@ -126,12 +173,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -142,12 +192,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -156,6 +209,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +221,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -191,20 +244,16 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,27 +263,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.workstations.v1beta.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = + (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,140 +301,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.UpdateWorkstationRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.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,13 +460,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance(); } @@ -430,23 +482,24 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = + new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -460,38 +513,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -499,7 +553,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) + return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -538,36 +594,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + 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) { @@ -577,43 +634,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -629,11 +706,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -647,17 +728,22 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstation_ != null + && workstation_ + != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -670,11 +756,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -687,11 +777,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -699,36 +793,48 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; @@ -736,39 +842,55 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationO 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. Mask specifying which fields in the config should be updated.
      * 
* - * .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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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) { @@ -784,14 +906,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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(); } else { @@ -802,17 +926,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -825,11 +952,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -842,11 +972,14 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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() { bitField0_ |= 0x00000002; @@ -854,49 +987,62 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the config should be updated.
      * 
* - * .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. Mask specifying which fields in the config should be updated.
      * 
* - * .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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -904,29 +1050,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the review, but do not actually
      * apply it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -936,14 +1088,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -951,29 +1106,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If set, and the config is not found, a new config will be created.
      * In this situation, update_mask is ignored.
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -982,9 +1143,9 @@ public Builder clearAllowMissing() { 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); } @@ -994,12 +1155,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(); } @@ -1008,27 +1170,27 @@ public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1043,6 +1205,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java index 922a74b232b0..61f355efa318 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java @@ -1,84 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationRequestOrBuilder extends +public interface UpdateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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. Mask specifying which fields in the config should be updated.
    * 
* - * .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(); /** + * + * *
    * If set, validate the request and preview the review, but do not actually
    * apply it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set, and the config is not found, a new config will be created.
    * In this situation, update_mask is ignored.
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java index f512a0b8293b..ea0e65c70655 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ -public final class Workstation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Workstation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.Workstation) WorkstationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Workstation() { name_ = ""; displayName_ = ""; @@ -30,53 +48,56 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Workstation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_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 5: return internalGetAnnotations(); case 13: 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, + com.google.cloud.workstations.v1beta.Workstation.Builder.class); } /** + * + * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1beta.Workstation.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Do not use.
      * 
@@ -85,6 +106,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -94,6 +117,8 @@ public enum State
      */
     STATE_STARTING(1),
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -102,6 +127,8 @@ public enum State */ STATE_RUNNING(2), /** + * + * *
      * The workstation is being stopped.
      * 
@@ -110,6 +137,8 @@ public enum State */ STATE_STOPPING(3), /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -122,6 +151,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -130,6 +161,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -139,6 +172,8 @@ public enum State
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -147,6 +182,8 @@ public enum State */ public static final int STATE_RUNNING_VALUE = 2; /** + * + * *
      * The workstation is being stopped.
      * 
@@ -155,6 +192,8 @@ public enum State */ public static final int STATE_STOPPING_VALUE = 3; /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -164,7 +203,6 @@ public enum State
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -189,51 +227,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return STATE_STARTING;
-        case 2: return STATE_RUNNING;
-        case 3: return STATE_STOPPING;
-        case 4: return STATE_STOPPED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return STATE_STARTING;
+        case 2:
+          return STATE_RUNNING;
+        case 3:
+          return STATE_STOPPING;
+        case 4:
+          return STATE_STOPPED;
+        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<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.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.workstations.v1beta.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -251,14 +291,18 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -267,29 +311,29 @@ 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; } } /** + * + * *
    * Full name of this resource.
    * 
* * 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 { @@ -298,14 +342,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -314,29 +362,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; } } /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @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 { @@ -345,14 +393,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -361,29 +413,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -394,12 +446,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -408,32 +463,35 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -441,20 +499,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -466,6 +525,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -473,17 +534,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-specified annotations.
    * 
@@ -491,11 +554,11 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -503,32 +566,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 13; + 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -537,20 +602,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 13;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -563,6 +629,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -571,17 +639,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -590,11 +660,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 13;
    */
   @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();
     }
@@ -604,11 +674,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -616,11 +690,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -628,11 +706,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -642,11 +723,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -654,11 +739,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -666,11 +755,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -680,11 +772,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -692,11 +788,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -704,11 +804,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -716,15 +819,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ @java.lang.Override @@ -733,30 +840,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -767,33 +874,51 @@ public java.lang.String getEtag() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1beta.Workstation.State getState() { + com.google.cloud.workstations.v1beta.Workstation.State result = + com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED + : result; } public static final int HOST_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -803,6 +928,7 @@ public java.lang.String getEtag() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -811,14 +937,15 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -828,16 +955,15 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -846,6 +972,7 @@ public java.lang.String getHost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -857,8 +984,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_); } @@ -871,12 +997,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -889,18 +1011,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 13); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); getUnknownFields().writeTo(output); } @@ -920,50 +1039,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + if (state_ + != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_); } - 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(13, 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(13, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -973,45 +1088,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.workstations.v1beta.Workstation)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.Workstation other = (com.google.cloud.workstations.v1beta.Workstation) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.Workstation other = + (com.google.cloud.workstations.v1beta.Workstation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (state_ != other.state_) return false; - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1030,8 +1135,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -1063,156 +1167,160 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.Workstation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.workstations.v1beta.Workstation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.Workstation) com.google.cloud.workstations.v1beta.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: 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 5: return internalGetMutableAnnotations(); case 13: 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, + com.google.cloud.workstations.v1beta.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.Workstation.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(); @@ -1245,9 +1353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @java.lang.Override @@ -1266,8 +1374,11 @@ public com.google.cloud.workstations.v1beta.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation buildPartial() { - com.google.cloud.workstations.v1beta.Workstation result = new com.google.cloud.workstations.v1beta.Workstation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.Workstation result = + new com.google.cloud.workstations.v1beta.Workstation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1295,19 +1406,13 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.etag_ = etag_; @@ -1324,38 +1429,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.workstations.v1beta.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1beta.Workstation)other); + return mergeFrom((com.google.cloud.workstations.v1beta.Workstation) other); } else { super.mergeFrom(other); return this; @@ -1363,7 +1469,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) { - if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1382,11 +1489,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1436,86 +1541,97 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 80: { - state_ = input.readEnum(); - bitField0_ |= 0x00000400; - break; - } // case 80 - case 90: { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 90 - case 106: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 80 + case 90: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + 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) { @@ -1525,22 +1641,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Full name of this resource.
      * 
* * 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; @@ -1549,20 +1668,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * 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 { @@ -1570,28 +1690,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1601,17 +1728,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1621,18 +1752,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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; @@ -1641,20 +1774,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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 { @@ -1662,28 +1796,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1693,17 +1834,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1713,18 +1858,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1733,20 +1880,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1754,28 +1902,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -1785,17 +1940,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -1803,14 +1962,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1818,29 +1980,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -1850,8 +2018,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1860,11 +2028,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1873,10 +2042,13 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1884,20 +2056,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1909,6 +2082,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1916,17 +2091,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-specified annotations.
      * 
@@ -1934,92 +2111,92 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -2028,10 +2205,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2040,20 +2220,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 13;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2066,6 +2247,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2074,17 +2257,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2093,23 +2278,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 13;
      */
     @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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2117,23 +2304,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2141,17 +2327,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 13;
      */
-    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"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -2159,49 +2348,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 13;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2217,14 +2423,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -2235,17 +2444,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2258,11 +2471,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2275,11 +2492,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2287,36 +2508,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -2324,39 +2557,58 @@ 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_; /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2372,14 +2624,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2390,17 +2645,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2413,11 +2672,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2430,11 +2693,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2442,36 +2709,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -2479,39 +2758,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2527,14 +2825,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2545,17 +2846,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2568,11 +2873,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2585,11 +2894,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -2597,36 +2910,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -2634,19 +2959,21 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2655,21 +2982,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -2677,30 +3005,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2710,18 +3045,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -2731,22 +3070,33 @@ public Builder setEtagBytes( private int state_ = 0; /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2757,24 +3107,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; + com.google.cloud.workstations.v1beta.Workstation.State result = + com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2788,11 +3151,16 @@ public Builder setState(com.google.cloud.workstations.v1beta.Workstation.State v return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2804,6 +3172,8 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2813,13 +3183,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -2828,6 +3198,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2837,15 +3209,14 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -2853,6 +3224,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2862,18 +3235,22 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } host_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2883,6 +3260,7 @@ public Builder setHost(
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHost() { @@ -2892,6 +3270,8 @@ public Builder clearHost() { return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -2901,21 +3281,23 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000800; 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); } @@ -2925,12 +3307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.Workstation) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.Workstation) private static final com.google.cloud.workstations.v1beta.Workstation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.Workstation(); } @@ -2939,27 +3321,27 @@ public static com.google.cloud.workstations.v1beta.Workstation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workstation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2974,6 +3356,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.Workstation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java index 74bfcf96d534..c30e9765e274 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * A grouping of workstation configurations and the associated workstations
  *  in that region.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
  */
-public final class WorkstationCluster extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster)
     WorkstationClusterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -32,58 +50,64 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_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 5:
         return internalGetAnnotations();
       case 15:
         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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationCluster.class,
+            com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder extends
+  public interface PrivateClusterConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -93,10 +117,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -106,12 +133,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString - getClusterHostnameBytes(); + com.google.protobuf.ByteString getClusterHostnameBytes(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -121,10 +150,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -134,12 +166,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString - getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString getServiceAttachmentUriBytes(); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -147,11 +181,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @return A list containing the allowedProjects. */ - java.util.List - getAllowedProjectsList(); + java.util.List getAllowedProjectsList(); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -159,10 +195,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -170,11 +209,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -182,28 +224,31 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString - getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString getAllowedProjectsBytes(int index); } /** + * + * *
    * Configuration options for private clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; @@ -212,37 +257,42 @@ private PrivateClusterConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + .class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** + * + * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -251,9 +301,12 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -263,6 +316,7 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ @java.lang.Override @@ -271,14 +325,15 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -288,16 +343,15 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -306,9 +360,12 @@ public java.lang.String getClusterHostname() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -318,6 +375,7 @@ public java.lang.String getClusterHostname() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -326,14 +384,15 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -343,16 +402,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -361,9 +419,12 @@ public java.lang.String getServiceAttachmentUri() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList allowedProjects_; /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -371,13 +432,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4; + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { return allowedProjects_; } /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -385,12 +448,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4; + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -398,6 +464,7 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -405,6 +472,8 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
      * Additional projects that are allowed to attach to the workstation
      * cluster's service attachment. By default, the workstation cluster's
@@ -412,15 +481,16 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,8 +502,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -456,8 +525,7 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -481,21 +549,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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = + (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() - != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname() - .equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri() - .equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList() - .equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname().equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -508,8 +575,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -523,88 +589,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -614,39 +693,44 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration options for private clusters.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.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(); @@ -660,19 +744,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -680,15 +767,20 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = + new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { if (((bitField0_ & 0x00000008) != 0)) { allowedProjects_ = allowedProjects_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); @@ -696,7 +788,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Wor result.allowedProjects_ = allowedProjects_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -713,46 +806,55 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -802,33 +904,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + 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) { @@ -838,15 +945,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enablePrivateEndpoint_ ; + private boolean enablePrivateEndpoint_; /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -854,27 +965,33 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ public Builder setEnablePrivateEndpoint(boolean value) { - + enablePrivateEndpoint_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -886,6 +1003,8 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -895,13 +1014,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -910,6 +1029,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -919,15 +1040,14 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -935,6 +1055,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -944,18 +1066,22 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -965,6 +1091,7 @@ public Builder setClusterHostname(
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -974,6 +1101,8 @@ public Builder clearClusterHostname() { return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -983,12 +1112,14 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -998,6 +1129,8 @@ public Builder setClusterHostnameBytes( private java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1006,14 +1139,15 @@ public Builder setClusterHostnameBytes(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1022,6 +1156,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1030,16 +1166,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1047,6 +1183,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1055,19 +1193,24 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1076,7 +1219,9 @@ public Builder setServiceAttachmentUri(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1086,6 +1231,8 @@ public Builder clearServiceAttachmentUri() { return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1094,13 +1241,16 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1108,14 +1258,18 @@ public Builder setServiceAttachmentUriBytes( return this; } - private com.google.protobuf.LazyStringList allowedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowedProjects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedProjectsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); bitField0_ |= 0x00000008; - } + } } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1123,13 +1277,15 @@ private void ensureAllowedProjectsIsMutable() {
        * 
* * repeated string allowed_projects = 4; + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { return allowedProjects_.getUnmodifiableView(); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1137,12 +1293,15 @@ private void ensureAllowedProjectsIsMutable() {
        * 
* * repeated string allowed_projects = 4; + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1150,6 +1309,7 @@ public int getAllowedProjectsCount() {
        * 
* * repeated string allowed_projects = 4; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1157,6 +1317,8 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1164,14 +1326,16 @@ public java.lang.String getAllowedProjects(int index) {
        * 
* * repeated string allowed_projects = 4; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1179,19 +1343,23 @@ public java.lang.String getAllowedProjects(int index) {
        * 
* * repeated string allowed_projects = 4; + * * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); onChanged(); return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1199,18 +1367,22 @@ public Builder setAllowedProjects(
        * 
* * repeated string allowed_projects = 4; + * * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); onChanged(); return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1218,18 +1390,19 @@ public Builder addAllowedProjects(
        * 
* * repeated string allowed_projects = 4; + * * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects( - java.lang.Iterable values) { + public Builder addAllAllowedProjects(java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); onChanged(); return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1237,6 +1410,7 @@ public Builder addAllAllowedProjects(
        * 
* * repeated string allowed_projects = 4; + * * @return This builder for chaining. */ public Builder clearAllowedProjects() { @@ -1246,6 +1420,8 @@ public Builder clearAllowedProjects() { return this; } /** + * + * *
        * Additional projects that are allowed to attach to the workstation
        * cluster's service attachment. By default, the workstation cluster's
@@ -1253,18 +1429,21 @@ public Builder clearAllowedProjects() {
        * 
* * repeated string allowed_projects = 4; + * * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1277,41 +1456,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationCluster + .PrivateClusterConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1323,21 +1507,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1346,29 +1534,29 @@ 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; } } /** + * + * *
    * Full name of this resource.
    * 
* * 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 { @@ -1377,14 +1565,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -1393,29 +1585,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; } } /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @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 { @@ -1424,14 +1616,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -1440,29 +1636,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1473,12 +1669,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1487,32 +1686,35 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1520,20 +1722,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1545,6 +1748,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1552,17 +1757,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-specified annotations.
    * 
@@ -1570,11 +1777,11 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1582,32 +1789,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 15; + 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1616,20 +1825,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 15;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1642,6 +1852,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1650,17 +1862,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -1669,11 +1883,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 15;
    */
   @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();
     }
@@ -1683,11 +1897,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1695,11 +1913,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1707,11 +1929,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1721,11 +1946,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1733,11 +1962,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1745,11 +1978,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1759,11 +1995,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1771,11 +2011,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1783,11 +2027,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1795,15 +2042,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ @java.lang.Override @@ -1812,30 +2063,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1844,15 +2095,19 @@ public java.lang.String getEtag() { } public static final int NETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ @java.lang.Override @@ -1861,30 +2116,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1893,9 +2148,12 @@ public java.lang.String getNetwork() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -1903,6 +2161,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ @java.lang.Override @@ -1911,14 +2170,15 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -1926,16 +2186,15 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -1944,13 +2203,19 @@ public java.lang.String getSubnetwork() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -1958,32 +2223,51 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -1991,6 +2275,7 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -1999,67 +2284,82 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2071,8 +2371,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_); } @@ -2085,12 +2384,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2118,12 +2413,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 15); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); getUnknownFields().writeTo(output); } @@ -2143,30 +2434,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2178,26 +2465,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getPrivateClusterConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, conditions_.get(i)); - } - 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(15, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); + } + 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(15, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2207,55 +2492,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster other = (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationCluster other = + (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig() - .equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2274,8 +2545,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2307,8 +2577,7 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2319,96 +2588,104 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 grouping of workstation configurations and the associated workstations
    *  in that region.
@@ -2416,59 +2693,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationCluster)
       com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           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 5:
           return internalGetMutableAnnotations();
         case 15:
           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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationCluster.class,
+              com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.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();
@@ -2514,9 +2788,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2535,14 +2809,18 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationCluster result = new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
+      com.google.cloud.workstations.v1beta.WorkstationCluster result =
+          new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1beta.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00004000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2577,19 +2855,13 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2601,9 +2873,10 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.subnetwork_ = subnetwork_;
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
-            ? privateClusterConfig_
-            : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ =
+            privateClusterConfigBuilder_ == null
+                ? privateClusterConfig_
+                : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
         result.degraded_ = degraded_;
@@ -2614,38 +2887,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.workstations.v1beta.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster)other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2653,7 +2927,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -2672,11 +2947,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -2726,9 +2999,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00004000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2760,111 +3034,122 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              network_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              subnetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getPrivateClusterConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 104: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 104
-            case 114: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 122
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                network_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                subnetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 104:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 104
+            case 114:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                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) {
@@ -2874,22 +3159,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this resource.
      * 
* * 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; @@ -2898,20 +3186,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * 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 { @@ -2919,28 +3208,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2950,17 +3246,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2970,18 +3270,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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; @@ -2990,20 +3292,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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 { @@ -3011,28 +3314,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3042,17 +3352,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3062,18 +3376,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3082,20 +3398,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -3103,28 +3420,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -3134,17 +3458,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3152,14 +3480,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3167,29 +3498,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3199,8 +3536,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3209,11 +3546,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3222,10 +3560,13 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3233,20 +3574,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3258,6 +3600,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3265,17 +3609,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-specified annotations.
      * 
@@ -3283,92 +3629,92 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -3377,10 +3723,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3389,20 +3738,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 15;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3415,6 +3765,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3423,17 +3775,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3442,23 +3796,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 15;
      */
     @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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3466,23 +3822,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3490,17 +3845,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 15;
      */
-    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"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -3508,49 +3866,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 15;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3566,14 +3941,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -3584,17 +3962,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3607,11 +3989,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3624,11 +4010,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3636,36 +4026,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -3673,39 +4075,58 @@ 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_; /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3721,14 +4142,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3739,17 +4163,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3762,11 +4190,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3779,11 +4211,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3791,36 +4227,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -3828,39 +4276,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3876,14 +4343,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3894,17 +4364,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3917,11 +4391,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3934,11 +4412,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -3946,36 +4428,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3983,19 +4477,21 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4004,21 +4500,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -4026,30 +4523,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4059,18 +4563,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4080,19 +4588,21 @@ public Builder setEtagBytes( private java.lang.Object network_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4101,21 +4611,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -4123,30 +4634,37 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4156,18 +4674,22 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4177,6 +4699,8 @@ public Builder setNetworkBytes( private java.lang.Object subnetwork_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4184,13 +4708,13 @@ public Builder setNetworkBytes(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4199,6 +4723,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4206,15 +4732,14 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4222,6 +4747,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4229,18 +4756,22 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4248,6 +4779,7 @@ public Builder setSubnetwork(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4257,6 +4789,8 @@ public Builder clearSubnetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this cluster will be created. Must be part of the
@@ -4264,12 +4798,14 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4277,43 +4813,66 @@ public Builder setSubnetworkBytes( return this; } - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> + privateClusterConfigBuilder_; /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4327,14 +4886,19 @@ public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -4345,17 +4909,24 @@ public Builder setPrivateClusterConfig( return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - privateClusterConfig_ != null && - privateClusterConfig_ != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && privateClusterConfig_ != null + && privateClusterConfig_ + != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -4368,11 +4939,15 @@ public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1beta.Wo return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4385,55 +4960,78 @@ public Builder clearPrivateClusterConfig() { return this; } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + getPrivateClusterConfigBuilder() { bitField0_ |= 0x00001000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } } /** + * + * *
      * Configuration for private cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), - getParentForChildren(), - isClean()); + privateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .Builder, + com.google.cloud.workstations.v1beta.WorkstationCluster + .PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), getParentForChildren(), isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -4441,6 +5039,7 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -4448,6 +5047,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -4455,17 +5056,20 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ public Builder setDegraded(boolean value) { - + degraded_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -4473,6 +5077,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -4482,24 +5087,29 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00004000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -4509,11 +5119,15 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -4523,11 +5137,15 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -4537,14 +5155,17 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4558,14 +5179,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -4576,11 +5200,15 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -4596,14 +5224,17 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4617,14 +5248,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -4635,14 +5269,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -4653,18 +5290,20 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -4672,11 +5311,15 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -4689,11 +5332,15 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -4706,39 +5353,49 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -4746,56 +5403,66 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - 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> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00004000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4805,12 +5472,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster) private static final com.google.cloud.workstations.v1beta.WorkstationCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster(); } @@ -4819,27 +5486,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationCluster getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4854,6 +5521,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java index 5c158b4a5a8d..9fa83ac75c4a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java @@ -1,84 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationClusterOrBuilder extends +public interface WorkstationClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -87,30 +123,31 @@ public interface WorkstationClusterOrBuilder extends */ int getAnnotationsCount(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -118,21 +155,24 @@ boolean containsAnnotations( * map<string, string> annotations = 5; */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -142,6 +182,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -149,15 +191,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 15;
    */
-  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();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -165,9 +205,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 15;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -176,11 +217,13 @@ boolean containsLabels(
    * map<string, string> labels = 15;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -188,135 +231,179 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -324,10 +411,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this cluster will be created. Must be part of the
@@ -335,39 +425,57 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString - getSubnetworkBytes(); + com.google.protobuf.ByteString getSubnetworkBytes(); /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig(); /** + * + * *
    * Configuration for private cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12; + * */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder(); /** + * + * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -375,51 +483,64 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java index 0ce65b112686..441284b43410 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * A set of configuration options describing how a workstation will be run.
  * Workstation configurations are intended to be shared across multiple
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
  */
-public final class WorkstationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig)
     WorkstationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -32,145 +50,169 @@ private WorkstationConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkstationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_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 5:
         return internalGetAnnotations();
       case 18:
         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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationConfig.class,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder extends
+  public interface HostOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder(); public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** + * + * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - public static final class Host extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Host extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Host() { - } + + private Host() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Host(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder extends + public interface GceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
        * Email address of the service account used on VM instances
        * used to support this configuration. If not set, VMs run with a
@@ -180,10 +222,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
        * Email address of the service account used on VM instances
        * used to support this configuration. If not set, VMs run with a
@@ -193,156 +238,214 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
        * Number of instances to pool for faster workstation starup.
        * 
* * int32 pool_size = 5; + * * @return The poolSize. */ int getPoolSize(); /** + * + * *
        * Whether instances have no public IP address.
        * 
* * bool disable_public_ip_addresses = 6; + * * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig(); /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig(); /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder(); /** + * + * *
        * Size of the boot disk in GB.
        * 
* * int32 boot_disk_size_gb = 9; + * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); } /** + * + * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceInstance() { machineType_ = ""; serviceAccount_ = ""; @@ -351,115 +454,138 @@ private GceInstance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceInstance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + .class); } - public interface GceShieldedInstanceConfigOrBuilder extends + public interface GceShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
          * Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
          * Whether the instance has integrity monitoring enabled.
          * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceShieldedInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceShieldedInstanceConfig() { - } + + private GceShieldedInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** + * + * *
          * Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -470,11 +596,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** + * + * *
          * Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -485,11 +614,14 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** + * + * *
          * Whether the instance has integrity monitoring enabled.
          * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -498,6 +630,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -510,7 +643,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -530,16 +663,15 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -549,19 +681,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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -574,101 +711,131 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -678,39 +845,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.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(); @@ -722,19 +896,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -742,14 +923,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.G } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -766,46 +958,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -841,27 +1047,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + 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) { @@ -871,15 +1081,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableSecureBoot_ ; + private boolean enableSecureBoot_; /** + * + * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -887,27 +1101,33 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
            * Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -917,13 +1137,16 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -931,27 +1154,33 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
            * Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -961,13 +1190,16 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -975,27 +1207,33 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
            * Whether the instance has integrity monitoring enabled.
            * 
* * bool enable_integrity_monitoring = 3; + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1004,6 +1242,7 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1016,41 +1255,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1062,78 +1308,94 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GceConfidentialInstanceConfigOrBuilder extends + public interface GceConfidentialInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Whether the instance has confidential compute enabled.
          * 
* * bool enable_confidential_compute = 1; + * * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceConfidentialInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceConfidentialInstanceConfig() { - } + + private GceConfidentialInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** + * + * *
          * Whether the instance has confidential compute enabled.
          * 
* * bool enable_confidential_compute = 1; + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1142,6 +1404,7 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1154,7 +1417,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1168,8 +1431,9 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableConfidentialCompute_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1179,15 +1443,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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + obj; - if (getEnableConfidentialCompute() - != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1200,95 +1471,127 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableConfidentialCompute()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1298,39 +1601,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.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(); @@ -1340,19 +1650,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1360,14 +1677,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.G } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1378,46 +1706,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -1447,17 +1789,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + 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) { @@ -1467,15 +1811,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableConfidentialCompute_ ; + private boolean enableConfidentialCompute_; /** + * + * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1483,27 +1831,33 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** + * + * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; + * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ public Builder setEnableConfidentialCompute(boolean value) { - + enableConfidentialCompute_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
            * Whether the instance has confidential compute enabled.
            * 
* * bool enable_confidential_compute = 1; + * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -1512,6 +1866,7 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1524,41 +1879,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1570,21 +1932,26 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The machineType. */ @java.lang.Override @@ -1593,29 +1960,29 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
        * The name of a Compute Engine machine type.
        * 
* * string machine_type = 1; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -1624,9 +1991,12 @@ public java.lang.String getMachineType() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** + * + * *
        * Email address of the service account used on VM instances
        * used to support this configuration. If not set, VMs run with a
@@ -1636,6 +2006,7 @@ public java.lang.String getMachineType() {
        * 
* * string service_account = 2; + * * @return The serviceAccount. */ @java.lang.Override @@ -1644,14 +2015,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
        * Email address of the service account used on VM instances
        * used to support this configuration. If not set, VMs run with a
@@ -1661,16 +2033,15 @@ public java.lang.String getServiceAccount() {
        * 
* * string service_account = 2; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1679,40 +2050,49 @@ public java.lang.String getServiceAccount() { } public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1720,28 +2100,33 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
        * Network tags to add to the Compute Engine machines backing the
        * Workstations.
        * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** + * + * *
        * Number of instances to pool for faster workstation starup.
        * 
* * int32 pool_size = 5; + * * @return The poolSize. */ @java.lang.Override @@ -1752,11 +2137,14 @@ public int getPoolSize() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** + * + * *
        * Whether instances have no public IP address.
        * 
* * bool disable_public_ip_addresses = 6; + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -1765,13 +2153,20 @@ public boolean getDisablePublicIpAddresses() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -1779,37 +2174,63 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -1817,37 +2238,59 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** + * + * *
        * Size of the boot disk in GB.
        * 
* * int32 boot_disk_size_gb = 9; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -1856,6 +2299,7 @@ public int getBootDiskSizeGb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1867,8 +2311,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -1917,24 +2360,24 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, disablePublicIpAddresses_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getConfidentialInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getConfidentialInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1944,35 +2387,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.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType() - .equals(other.getMachineType())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getPoolSize() - != other.getPoolSize()) return false; - if (getDisablePublicIpAddresses() - != other.getDisablePublicIpAddresses()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getPoolSize() != other.getPoolSize()) return false; + if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig() - .equals(other.getConfidentialInstanceConfig())) return false; + if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) + return false; } - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1995,8 +2433,8 @@ public int hashCode() { hash = (37 * hash) + POOL_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPoolSize(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisablePublicIpAddresses()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -2012,88 +2450,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2103,39 +2556,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.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(); @@ -2161,19 +2618,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2181,15 +2641,20 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance b } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { if (((bitField0_ & 0x00000004) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); @@ -2197,7 +2662,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Wor result.tags_ = tags_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -2212,14 +2678,16 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi result.disablePublicIpAddresses_ = disablePublicIpAddresses_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = + shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = + confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -2230,46 +2698,54 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host.GceInstance) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)other); + if (other + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -2331,57 +2807,65 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 66: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 72: { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: + { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 72: + { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + 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) { @@ -2391,22 +2875,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object machineType_ = ""; /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2415,20 +2902,21 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2436,28 +2924,35 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -2467,18 +2962,22 @@ public Builder clearMachineType() { return this; } /** + * + * *
          * The name of a Compute Engine machine type.
          * 
* * string machine_type = 1; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -2487,6 +2986,8 @@ public Builder setMachineTypeBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
          * Email address of the service account used on VM instances
          * used to support this configuration. If not set, VMs run with a
@@ -2496,13 +2997,13 @@ public Builder setMachineTypeBytes(
          * 
* * string service_account = 2; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2511,6 +3012,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Email address of the service account used on VM instances
          * used to support this configuration. If not set, VMs run with a
@@ -2520,15 +3023,14 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2536,6 +3038,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Email address of the service account used on VM instances
          * used to support this configuration. If not set, VMs run with a
@@ -2545,18 +3049,22 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Email address of the service account used on VM instances
          * used to support this configuration. If not set, VMs run with a
@@ -2566,6 +3074,7 @@ public Builder setServiceAccount(
          * 
* * string service_account = 2; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -2575,6 +3084,8 @@ public Builder clearServiceAccount() { return this; } /** + * + * *
          * Email address of the service account used on VM instances
          * used to support this configuration. If not set, VMs run with a
@@ -2584,12 +3095,14 @@ public Builder clearServiceAccount() {
          * 
* * string service_account = 2; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -2597,45 +3110,55 @@ public Builder setServiceAccountBytes( return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2643,81 +3166,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -2727,18 +3264,22 @@ public Builder clearTags() { return this; } /** + * + * *
          * Network tags to add to the Compute Engine machines backing the
          * Workstations.
          * 
* * repeated string tags = 4; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -2746,13 +3287,16 @@ public Builder addTagsBytes( return this; } - private int poolSize_ ; + private int poolSize_; /** + * + * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; + * * @return The poolSize. */ @java.lang.Override @@ -2760,27 +3304,33 @@ public int getPoolSize() { return poolSize_; } /** + * + * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; + * * @param value The poolSize to set. * @return This builder for chaining. */ public Builder setPoolSize(int value) { - + poolSize_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Number of instances to pool for faster workstation starup.
          * 
* * int32 pool_size = 5; + * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -2790,13 +3340,16 @@ public Builder clearPoolSize() { return this; } - private boolean disablePublicIpAddresses_ ; + private boolean disablePublicIpAddresses_; /** + * + * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -2804,27 +3357,33 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** + * + * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; + * * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ public Builder setDisablePublicIpAddresses(boolean value) { - + disablePublicIpAddresses_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
          * Whether instances have no public IP address.
          * 
* * bool disable_public_ip_addresses = 6; + * * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -2834,43 +3393,73 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2884,14 +3473,20 @@ public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1beta.Wo return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -2902,17 +3497,26 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - shieldedInstanceConfig_ != null && - shieldedInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && shieldedInstanceConfig_ != null + && shieldedInstanceConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -2925,11 +3529,15 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1beta. return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2942,90 +3550,147 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000020; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> + confidentialInstanceConfigBuilder_; /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder setConfidentialInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3039,14 +3704,20 @@ public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1bet return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -3057,17 +3728,26 @@ public Builder setConfidentialInstanceConfig( return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder mergeConfidentialInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - confidentialInstanceConfig_ != null && - confidentialInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && confidentialInstanceConfig_ != null + && confidentialInstanceConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -3080,11 +3760,15 @@ public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1b return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3097,60 +3781,90 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), - getParentForChildren(), - isClean()); + confidentialInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), getParentForChildren(), isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_ ; + private int bootDiskSizeGb_; /** + * + * *
          * Size of the boot disk in GB.
          * 
* * int32 boot_disk_size_gb = 9; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -3158,27 +3872,33 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
          * Size of the boot disk in GB.
          * 
* * int32 boot_disk_size_gb = 9; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(int value) { - + bootDiskSizeGb_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
          * Size of the boot disk in GB.
          * 
* * int32 boot_disk_size_gb = 9; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -3187,6 +3907,7 @@ public Builder clearBootDiskSizeGb() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3199,41 +3920,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3245,20 +3970,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int configCase_ = 0; private java.lang.Object config_; + public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; + private ConfigCase(int value) { this.value = value; } @@ -3274,29 +4002,35 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: return GCE_INSTANCE; - case 0: return CONFIG_NOT_SET; - default: return null; + case 1: + return GCE_INSTANCE; + case 0: + return CONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -3304,36 +4038,48 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3345,10 +4091,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configCase_ == 1) { - output.writeMessage(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage( + 1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -3360,8 +4106,10 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3371,18 +4119,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.workstations.v1beta.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance() - .equals(other.getGceInstance())) return false; + if (!getGceInstance().equals(other.getGceInstance())) return false; break; case 0: default: @@ -3412,87 +4160,94 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3502,39 +4257,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host) com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.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(); @@ -3548,13 +4305,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance(); } @@ -3569,22 +4327,26 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && - gceInstanceBuilder_ != null) { + if (configCase_ == 1 && gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -3593,38 +4355,41 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.Workstation public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host)other); + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host) other); } else { super.mergeFrom(other); return this; @@ -3632,15 +4397,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) + return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: { - break; - } + case GCE_INSTANCE: + { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3668,19 +4437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGceInstanceFieldBuilder().getBuilder(), - extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 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) { @@ -3690,12 +4459,12 @@ public Builder mergeFrom( } // finally return this; } + private int configCase_ = 0; private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { @@ -3708,13 +4477,21 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> + gceInstanceBuilder_; /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -3722,35 +4499,49 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getGceInstance() { if (gceInstanceBuilder_ == null) { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) + config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder setGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3764,14 +4555,19 @@ public Builder setGceInstance(com.google.cloud.workstations.v1beta.WorkstationCo return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder setGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -3782,18 +4578,29 @@ public Builder setGceInstance( return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder mergeGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 && - config_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { - config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_) - .mergeFrom(value).buildPartial(); + if (configCase_ == 1 + && config_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) { + config_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) + config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -3809,11 +4616,15 @@ public Builder mergeGceInstance(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -3832,49 +4643,72 @@ public Builder clearGceInstance() { return this; } /** - *
+       *
+       *
+       * 
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) + config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); - } - gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( + config_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); + } + gceInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -3884,6 +4718,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOr onChanged(); return gceInstanceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3896,12 +4731,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(); } @@ -3910,27 +4746,28 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3945,122 +4782,158 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PersistentDirectoryOrBuilder extends + public interface PersistentDirectoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder(); - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .DirectoryTypeCase + getDirectoryTypeCase(); } /** + * + * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersistentDirectory(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + .class); } - public interface GceRegionalPersistentDiskOrBuilder extends + public interface GceRegionalPersistentDiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Size of the disk in GB. Must be empty if source_snapshot is set.
        * 
* * int32 size_gb = 1; + * * @return The sizeGb. */ int getSizeGb(); /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4068,10 +4941,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2; + * * @return The fsType. */ java.lang.String getFsType(); /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4079,91 +4955,118 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2; + * * @return The bytes for fsType. */ - com.google.protobuf.ByteString - getFsTypeBytes(); + com.google.protobuf.ByteString getFsTypeBytes(); /** + * + * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; + * * @return The diskType. */ java.lang.String getDiskType(); /** + * + * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; + * * @return The bytes for diskType. */ - com.google.protobuf.ByteString - getDiskTypeBytes(); + com.google.protobuf.ByteString getDiskTypeBytes(); /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString - getSourceSnapshotBytes(); + com.google.protobuf.ByteString getSourceSnapshotBytes(); /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceRegionalPersistentDisk + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -4173,40 +5076,47 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } /** + * + * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code + * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Do not use.
          * 
@@ -4215,6 +5125,8 @@ public enum ReclaimPolicy */ RECLAIM_POLICY_UNSPECIFIED(0), /** + * + * *
          * The persistent disk will be deleted with the workstation.
          * 
@@ -4223,6 +5135,8 @@ public enum ReclaimPolicy */ DELETE(1), /** + * + * *
          * The persistent disk will be remain after the workstation is deleted,
          * and the administrator must manually delete the disk.
@@ -4235,6 +5149,8 @@ public enum ReclaimPolicy
         ;
 
         /**
+         *
+         *
          * 
          * Do not use.
          * 
@@ -4243,6 +5159,8 @@ public enum ReclaimPolicy */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
          * The persistent disk will be deleted with the workstation.
          * 
@@ -4251,6 +5169,8 @@ public enum ReclaimPolicy */ public static final int DELETE_VALUE = 1; /** + * + * *
          * The persistent disk will be remain after the workstation is deleted,
          * and the administrator must manually delete the disk.
@@ -4260,7 +5180,6 @@ public enum ReclaimPolicy
          */
         public static final int RETAIN_VALUE = 2;
 
-
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -4285,10 +5204,14 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0: return RECLAIM_POLICY_UNSPECIFIED;
-            case 1: return DELETE;
-            case 2: return RETAIN;
-            default: return null;
+            case 0:
+              return RECLAIM_POLICY_UNSPECIFIED;
+            case 1:
+              return DELETE;
+            case 2:
+              return RETAIN;
+            default:
+              return null;
           }
         }
 
@@ -4296,29 +5219,32 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
-        private static final com.google.protobuf.Internal.EnumLiteMap<
-            ReclaimPolicy> internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public ReclaimPolicy findValueByNumber(int number) {
-                  return ReclaimPolicy.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 ReclaimPolicy findValueByNumber(int number) {
+                    return ReclaimPolicy.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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
+
+        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+          return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
+              .GceRegionalPersistentDisk.getDescriptor()
+              .getEnumTypes()
+              .get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -4327,7 +5253,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-              "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -4347,11 +5273,14 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
+       *
+       *
        * 
        * Size of the disk in GB. Must be empty if source_snapshot is set.
        * 
* * int32 size_gb = 1; + * * @return The sizeGb. */ @java.lang.Override @@ -4360,9 +5289,12 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4370,6 +5302,7 @@ public int getSizeGb() {
        * 
* * string fs_type = 2; + * * @return The fsType. */ @java.lang.Override @@ -4378,14 +5311,15 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** + * + * *
        * Type of file system that the disk should be formatted with. The
        * workstation image must support this file system type. Must be empty
@@ -4393,16 +5327,15 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2; + * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -4411,14 +5344,18 @@ public java.lang.String getFsType() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** + * + * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; + * * @return The diskType. */ @java.lang.Override @@ -4427,29 +5364,29 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** + * + * *
        * Type of the disk to use.
        * 
* * string disk_type = 3; + * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -4458,15 +5395,19 @@ public java.lang.String getDiskType() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The sourceSnapshot. */ @java.lang.Override @@ -4475,30 +5416,30 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** + * + * *
        * Name of the snapshot to use as the source for the disk. If set,
        * size_gb and fs_type must be empty.
        * 
* * string source_snapshot = 5; + * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -4509,32 +5450,54 @@ public java.lang.String getSourceSnapshot() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
        * What should happen to the disk after the workstation is deleted.
        * Defaults to DELETE.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The reclaimPolicy. */ - @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4546,8 +5509,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -4557,7 +5519,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + if (reclaimPolicy_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -4573,8 +5538,7 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -4582,9 +5546,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -4597,21 +5563,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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; - - if (getSizeGb() - != other.getSizeGb()) return false; - if (!getFsType() - .equals(other.getFsType())) return false; - if (!getDiskType() - .equals(other.getDiskType())) return false; - if (!getSourceSnapshot() - .equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + obj; + + if (getSizeGb() != other.getSizeGb()) return false; + if (!getFsType().equals(other.getFsType())) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4639,88 +5609,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4730,40 +5729,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.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(); @@ -4777,19 +5783,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4797,14 +5810,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -4827,46 +5851,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -4914,37 +5952,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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) { @@ -4954,15 +5998,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int sizeGb_ ; + private int sizeGb_; /** + * + * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * 
* * int32 size_gb = 1; + * * @return The sizeGb. */ @java.lang.Override @@ -4970,27 +6018,33 @@ public int getSizeGb() { return sizeGb_; } /** + * + * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * 
* * int32 size_gb = 1; + * * @param value The sizeGb to set. * @return This builder for chaining. */ public Builder setSizeGb(int value) { - + sizeGb_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Size of the disk in GB. Must be empty if source_snapshot is set.
          * 
* * int32 size_gb = 1; + * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -5002,6 +6056,8 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5009,13 +6065,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2; + * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -5024,6 +6080,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5031,15 +6089,14 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2; + * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -5047,6 +6104,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5054,18 +6113,22 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2; + * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5073,6 +6136,7 @@ public Builder setFsType(
          * 
* * string fs_type = 2; + * * @return This builder for chaining. */ public Builder clearFsType() { @@ -5082,6 +6146,8 @@ public Builder clearFsType() { return this; } /** + * + * *
          * Type of file system that the disk should be formatted with. The
          * workstation image must support this file system type. Must be empty
@@ -5089,12 +6155,14 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2; + * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -5104,18 +6172,20 @@ public Builder setFsTypeBytes( private java.lang.Object diskType_ = ""; /** + * + * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; + * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -5124,20 +6194,21 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; + * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -5145,28 +6216,35 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; + * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; + * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -5176,17 +6254,21 @@ public Builder clearDiskType() { return this; } /** + * + * *
          * Type of the disk to use.
          * 
* * string disk_type = 3; + * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -5196,19 +6278,21 @@ public Builder setDiskTypeBytes( private java.lang.Object sourceSnapshot_ = ""; /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -5217,21 +6301,22 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -5239,30 +6324,37 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -5272,18 +6364,22 @@ public Builder clearSourceSnapshot() { return this; } /** + * + * *
          * Name of the snapshot to use as the source for the disk. If set,
          * size_gb and fs_type must be empty.
          * 
* * string source_snapshot = 5; + * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -5293,24 +6389,35 @@ public Builder setSourceSnapshotBytes( private int reclaimPolicy_ = 0; /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -5321,30 +6428,52 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { + public Builder setReclaimPolicy( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + value) { if (value == null) { throw new NullPointerException(); } @@ -5354,12 +6483,17 @@ public Builder setReclaimPolicy(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
          * What should happen to the disk after the workstation is deleted.
          * Defaults to DELETE.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4; + * + * * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -5368,6 +6502,7 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5380,41 +6515,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig + .PersistentDirectory.GceRegionalPersistentDisk + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5426,20 +6568,24 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; + public enum DirectoryTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; + private DirectoryTypeCase(int value) { this.value = value; } @@ -5455,31 +6601,37 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: return GCE_PD; - case 0: return DIRECTORYTYPE_NOT_SET; - default: return null; + case 2: + return GCE_PD; + case 0: + return DIRECTORYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The mountPath. */ @java.lang.Override @@ -5488,29 +6640,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
      * Location of this directory in the running workstation.
      * 
* * string mount_path = 1; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -5520,11 +6672,16 @@ public java.lang.String getMountPath() { public static final int GCE_PD_FIELD_NUMBER = 2; /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -5532,36 +6689,56 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5573,13 +6750,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(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + output.writeMessage( + 2, + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } getUnknownFields().writeTo(output); } @@ -5594,8 +6774,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5605,20 +6789,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.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath() - .equals(other.getMountPath())) return false; + if (!getMountPath().equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd() - .equals(other.getGcePd())) return false; + if (!getGcePd().equals(other.getGcePd())) return false; break; case 0: default: @@ -5649,88 +6833,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5740,39 +6937,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.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(); @@ -5787,19 +6988,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5807,26 +7011,31 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && - gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -5835,59 +7044,69 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.Workstation public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.PersistentDirectory) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)other); + if (other + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: { - break; - } + case GCE_PD: + { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -5915,24 +7134,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGcePdFieldBuilder().getBuilder(), - extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); + directoryTypeCase_ = 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) { @@ -5942,12 +7162,12 @@ public Builder mergeFrom( } // finally return this; } + private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public Builder clearDirectoryType() { @@ -5961,18 +7181,20 @@ public Builder clearDirectoryType() { private java.lang.Object mountPath_ = ""; /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -5981,20 +7203,21 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -6002,28 +7225,35 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mountPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -6033,17 +7263,21 @@ public Builder clearMountPath() { return this; } /** + * + * *
        * Location of this directory in the running workstation.
        * 
* * string mount_path = 1; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000001; @@ -6052,13 +7286,24 @@ public Builder setMountPathBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> + gcePdBuilder_; /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -6066,35 +7311,53 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder setGcePd( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6108,14 +7371,20 @@ public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.P return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -6126,18 +7395,33 @@ public Builder setGcePd( return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder mergeGcePd( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 && - directoryType_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) - .mergeFrom(value).buildPartial(); + if (directoryTypeCase_ == 2 + && directoryType_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.newBuilder( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_) + .mergeFrom(value) + .buildPartial(); } else { directoryType_ = value; } @@ -6153,11 +7437,15 @@ public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -6176,50 +7464,84 @@ public Builder clearGcePd() { return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, + directoryType_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -6228,6 +7550,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector onChanged(); return gcePdBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6240,41 +7563,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6286,121 +7613,149 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ContainerOrBuilder extends + public interface ContainerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return A list containing the command. */ - java.util.List - getCommandList(); + java.util.List getCommandList(); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return The count of command. */ int getCommandCount(); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString - getCommandBytes(int index); + com.google.protobuf.ByteString getCommandBytes(int index); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6409,30 +7764,31 @@ public interface ContainerOrBuilder extends */ int getEnvCount(); /** + * + * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - boolean containsEnv( - java.lang.String key); - /** - * Use {@link #getEnvMap()} instead. - */ + boolean containsEnv(java.lang.String key); + /** Use {@link #getEnvMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnv(); + java.util.Map getEnv(); /** + * + * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - java.util.Map - getEnvMap(); + java.util.Map getEnvMap(); /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6440,66 +7796,78 @@ boolean containsEnv( * map<string, string> env = 4; */ /* nullable */ -java.lang.String getEnvOrDefault( + java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
      * Environment variables passed to the container.
      * 
* * map<string, string> env = 4; */ - java.lang.String getEnvOrThrow( - java.lang.String key); + java.lang.String getEnvOrThrow(java.lang.String key); /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The workingDir. */ java.lang.String getWorkingDir(); /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString - getWorkingDirBytes(); + com.google.protobuf.ByteString getWorkingDirBytes(); /** + * + * *
      * If set, overrides the USER specified in the image with the given uid.
      * 
* * int32 run_as_user = 6; + * * @return The runAsUser. */ int getRunAsUser(); } /** + * + * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Container extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Container() { image_ = ""; command_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -6509,51 +7877,55 @@ private Container() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Container(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_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 4: return internalGetEnv(); 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The image. */ @java.lang.Override @@ -6562,30 +7934,30 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * Docker image defining the container. This image must be accessible by the
      * config's service account.
      * 
* * string image = 1; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -6594,37 +7966,46 @@ public java.lang.String getImage() { } public static final int COMMAND_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList command_; /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -6632,51 +8013,62 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
      * If set, overrides the default ENTRYPOINT specified by the image.
      * 
* * repeated string command = 2; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList args_; /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -6684,46 +8076,50 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Arguments passed to the entrypoint.
      * 
* * repeated string args = 3; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; + private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6731,20 +8127,21 @@ public int getEnvCount() { * map<string, string> env = 4; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6756,6 +8153,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6763,17 +8162,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Environment variables passed to the container.
      * 
@@ -6781,11 +8182,11 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6793,14 +8194,18 @@ public java.lang.String getEnvOrThrow( } public static final int WORKING_DIR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The workingDir. */ @java.lang.Override @@ -6809,29 +8214,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** + * + * *
      * If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5; + * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -6842,11 +8247,14 @@ public java.lang.String getWorkingDir() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** + * + * *
      * If set, overrides the USER specified in the image with the given uid.
      * 
* * int32 run_as_user = 6; + * * @return The runAsUser. */ @java.lang.Override @@ -6855,6 +8263,7 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6866,8 +8275,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -6877,12 +8285,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEnv(), - EnvDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -6917,22 +8321,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry - : internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry - env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, env__); + for (java.util.Map.Entry entry : + internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry env__ = + EnvDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6942,25 +8345,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.workstations.v1beta.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!internalGetEnv().equals( - other.internalGetEnv())) return false; - if (!getWorkingDir() - .equals(other.getWorkingDir())) return false; - if (getRunAsUser() - != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; + + if (!getImage().equals(other.getImage())) return false; + if (!getCommandList().equals(other.getCommandList())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!internalGetEnv().equals(other.internalGetEnv())) return false; + if (!getWorkingDir().equals(other.getWorkingDir())) return false; + if (getRunAsUser() != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6996,87 +8394,95 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container + 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.workstations.v1beta.WorkstationConfig.Container parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Container prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7086,61 +8492,62 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.Container) com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetEnv(); 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 4: return internalGetMutableEnv(); 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Container.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Container.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(); @@ -7157,14 +8564,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Container + .getDefaultInstance(); } @java.lang.Override @@ -7178,14 +8587,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container build() @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { if (((bitField0_ & 0x00000002) != 0)) { command_ = command_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -7198,7 +8611,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Wor result.args_ = args_; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -7219,46 +8633,53 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.Container) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Container)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Container + .getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -7284,8 +8705,7 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig. } onChanged(); } - internalGetMutableEnv().mergeFrom( - other.internalGetEnv()); + internalGetMutableEnv().mergeFrom(other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -7321,48 +8741,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - env__ = input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put( - env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + 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) { @@ -7372,23 +8798,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object image_ = ""; /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -7397,21 +8826,22 @@ public java.lang.String getImage() { } } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -7419,30 +8849,37 @@ public java.lang.String getImage() { } } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @return This builder for chaining. */ public Builder clearImage() { @@ -7452,18 +8889,22 @@ public Builder clearImage() { return this; } /** + * + * *
        * Docker image defining the container. This image must be accessible by the
        * config's service account.
        * 
* * string image = 1; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -7471,42 +8912,52 @@ public Builder setImageBytes( return this; } - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList command_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { command_ = new com.google.protobuf.LazyStringArrayList(command_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_.getUnmodifiableView(); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -7514,76 +8965,90 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCommand(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.set(index, value); onChanged(); return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.add(value); onChanged(); return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand( - java.lang.Iterable values) { + public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); onChanged(); return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @return This builder for chaining. */ public Builder clearCommand() { @@ -7593,17 +9058,21 @@ public Builder clearCommand() { return this; } /** + * + * *
        * If set, overrides the default ENTRYPOINT specified by the image.
        * 
* * repeated string command = 2; + * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -7611,42 +9080,52 @@ public Builder addCommandBytes( return this; } - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList args_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_.getUnmodifiableView(); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -7654,76 +9133,90 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); onChanged(); return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @return This builder for chaining. */ public Builder clearArgs() { @@ -7733,17 +9226,21 @@ public Builder clearArgs() { return this; } /** + * + * *
        * Arguments passed to the entrypoint.
        * 
* * repeated string args = 3; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -7751,21 +9248,19 @@ public Builder addArgsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField( - EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -7774,10 +9269,13 @@ public Builder addArgsBytes( onChanged(); return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7785,20 +9283,21 @@ public int getEnvCount() { * map<string, string> env = 4; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7810,6 +9309,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7817,17 +9318,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Environment variables passed to the container.
        * 
@@ -7835,91 +9338,95 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap() - .clear(); + internalGetMutableEnv().getMutableMap().clear(); return this; } /** + * + * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder removeEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnv().getMutableMap() - .remove(key); + public Builder removeEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnv().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnv() { + public java.util.Map getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** + * + * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder putEnv( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableEnv().getMutableMap() - .put(key, value); + public Builder putEnv(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEnv().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
        * Environment variables passed to the container.
        * 
* * map<string, string> env = 4; */ - public Builder putAllEnv( - java.util.Map values) { - internalGetMutableEnv().getMutableMap() - .putAll(values); + public Builder putAllEnv(java.util.Map values) { + internalGetMutableEnv().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -7928,20 +9435,21 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -7949,28 +9457,35 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -7980,17 +9495,21 @@ public Builder clearWorkingDir() { return this; } /** + * + * *
        * If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5; + * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -7998,13 +9517,16 @@ public Builder setWorkingDirBytes( return this; } - private int runAsUser_ ; + private int runAsUser_; /** + * + * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; + * * @return The runAsUser. */ @java.lang.Override @@ -8012,27 +9534,33 @@ public int getRunAsUser() { return runAsUser_; } /** + * + * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; + * * @param value The runAsUser to set. * @return This builder for chaining. */ public Builder setRunAsUser(int value) { - + runAsUser_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
        * If set, overrides the USER specified in the image with the given uid.
        * 
* * int32 run_as_user = 6; + * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -8041,6 +9569,7 @@ public Builder clearRunAsUser() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8053,41 +9582,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8099,39 +9631,47 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomerEncryptionKeyOrBuilder extends + public interface CustomerEncryptionKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8143,10 +9683,13 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2; + * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8158,12 +9701,14 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2; + * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); } /** + * + * *
    * A customer-managed encryption key for the Compute Engine resources
    * of this workstation configuration.
@@ -8171,15 +9716,16 @@ public interface CustomerEncryptionKeyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -8187,39 +9733,45 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder
+                  .class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
+     *
+     *
      * 
      * The name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The kmsKey. */ @java.lang.Override @@ -8228,30 +9780,30 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 name of the Google Cloud KMS encryption key. For example,
      * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
      * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + 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 { @@ -8260,9 +9812,12 @@ public java.lang.String getKmsKey() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8274,6 +9829,7 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key_service_account = 2; + * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -8282,14 +9838,15 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** + * + * *
      * The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -8301,16 +9858,15 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2; + * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -8319,6 +9875,7 @@ public java.lang.String getKmsKeyServiceAccount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8330,8 +9887,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -8361,17 +9917,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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount() - .equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8392,88 +9949,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8483,40 +10053,45 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A customer-managed encryption key for the Compute Engine resources
      * of this workstation configuration.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.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(); @@ -8527,19 +10102,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8547,14 +10125,19 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.kmsKey_ = kmsKey_; @@ -8568,46 +10151,55 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance()) return this; if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; bitField0_ |= 0x00000001; @@ -8644,22 +10236,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - kmsKeyServiceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kmsKeyServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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) { @@ -8669,23 +10264,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object kmsKey_ = ""; /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @return The kmsKey. */ 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; @@ -8694,21 +10292,22 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + 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 { @@ -8716,30 +10315,37 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -8749,18 +10355,22 @@ public Builder clearKmsKey() { return this; } /** + * + * *
        * The name of the Google Cloud KMS encryption key. For example,
        * `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
        * 
* * string kms_key = 1; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -8770,6 +10380,8 @@ public Builder setKmsKeyBytes( private java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8781,13 +10393,13 @@ public Builder setKmsKeyBytes(
        * 
* * string kms_key_service_account = 2; + * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -8796,6 +10408,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8807,15 +10421,14 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; + * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -8823,6 +10436,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8834,18 +10449,22 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; + * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8857,6 +10476,7 @@ public Builder setKmsKeyServiceAccount(
        * 
* * string kms_key_service_account = 2; + * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -8866,6 +10486,8 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** + * + * *
        * The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -8877,18 +10499,21 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2; + * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8901,41 +10526,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig + .CustomerEncryptionKey + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8947,21 +10577,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -8970,29 +10604,29 @@ 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; } } /** + * + * *
    * Full name of this resource.
    * 
* * 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 { @@ -9001,14 +10635,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -9017,29 +10655,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; } } /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @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 { @@ -9048,14 +10686,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -9064,29 +10706,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -9097,12 +10739,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -9111,32 +10756,35 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9144,20 +10792,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9169,6 +10818,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9176,17 +10827,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Client-specified annotations.
    * 
@@ -9194,11 +10847,11 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -9206,32 +10859,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 18; + 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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_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.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - 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_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9240,20 +10895,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 18;
    */
   @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();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9266,6 +10922,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9274,17 +10932,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      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;
   }
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -9293,11 +10953,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 18;
    */
   @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();
     }
@@ -9307,11 +10967,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -9319,11 +10983,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -9331,11 +10999,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -9345,11 +11016,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -9357,11 +11032,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -9369,11 +11048,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -9383,11 +11065,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -9395,11 +11081,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -9407,11 +11097,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -9419,15 +11112,19 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ @java.lang.Override @@ -9436,30 +11133,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -9470,6 +11167,8 @@ public java.lang.String getEtag() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -9477,6 +11176,7 @@ public java.lang.String getEtag() {
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -9484,6 +11184,8 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -9491,6 +11193,7 @@ public boolean hasIdleTimeout() {
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return The idleTimeout. */ @java.lang.Override @@ -9498,6 +11201,8 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -9514,6 +11219,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
   public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11;
   private com.google.protobuf.Duration runningTimeout_;
   /**
+   *
+   *
    * 
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -9522,6 +11229,7 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -9529,6 +11237,8 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -9537,13 +11247,18 @@ public boolean hasRunningTimeout() {
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -9555,17 +11270,22 @@ public com.google.protobuf.Duration getRunningTimeout() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
-    return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_;
+    return runningTimeout_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : runningTimeout_;
   }
 
   public static final int HOST_FIELD_NUMBER = 12;
   private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_;
   /**
+   *
+   *
    * 
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; + * * @return Whether the host field is set. */ @java.lang.Override @@ -9573,18 +11293,25 @@ public boolean hasHost() { return host_ != null; } /** + * + * *
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; + * * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { - return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } /** + * + * *
    * Runtime host for the workstation.
    * 
@@ -9593,79 +11320,110 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") - private java.util.List persistentDirectories_; + private java.util.List + persistentDirectories_; /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public java.util.List getPersistentDirectoriesList() { + public java.util.List + getPersistentDirectoriesList() { return persistentDirectories_; } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { return persistentDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; + * * @return Whether the container field is set. */ @java.lang.Override @@ -9673,19 +11431,26 @@ public boolean hasContainer() { return container_ != null; } /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; + * * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { - return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() + : container_; } /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
@@ -9694,13 +11459,19 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getConta
    * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
    */
   @java.lang.Override
-  public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() {
-    return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_;
+  public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
+      getContainerOrBuilder() {
+    return container_ == null
+        ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()
+        : container_;
   }
 
   public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17;
-  private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_;
+  private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey
+      encryptionKey_;
   /**
+   *
+   *
    * 
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -9717,7 +11488,10 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -9725,6 +11499,8 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -9741,14 +11517,23 @@ public boolean hasEncryptionKey() {
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -9765,16 +11550,24 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -9782,6 +11575,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -9790,67 +11584,82 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9862,8 +11671,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_); } @@ -9876,12 +11684,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -9918,12 +11722,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 18); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); getUnknownFields().writeTo(output); } @@ -9943,75 +11743,65 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, persistentDirectories_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getEncryptionKey()); - } - 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(18, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); + } + 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(18, labels__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10021,73 +11811,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig other = + (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout() - .equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout() - .equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList() - .equals(other.getPersistentDirectoriesList())) return false; + if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer() - .equals(other.getContainer())) return false; + if (!getContainer().equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; } - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10106,8 +11879,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -10155,8 +11927,7 @@ public int hashCode() { hash = (53 * hash) + getEncryptionKey().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -10167,96 +11938,104 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 set of configuration options describing how a workstation will be run.
    * Workstation configurations are intended to be shared across multiple
@@ -10265,59 +12044,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.workstations.v1beta.WorkstationConfig)
       com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           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 5:
           return internalGetMutableAnnotations();
         case 18:
           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.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.class,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.newBuilder()
-    private Builder() {
-
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
+    private Builder() {}
 
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -10388,9 +12164,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -10409,14 +12185,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
+      com.google.cloud.workstations.v1beta.WorkstationConfig result =
+          new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1beta.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -10460,47 +12240,34 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ = idleTimeoutBuilder_ == null
-            ? idleTimeout_
-            : idleTimeoutBuilder_.build();
+        result.idleTimeout_ =
+            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ = runningTimeoutBuilder_ == null
-            ? runningTimeout_
-            : runningTimeoutBuilder_.build();
+        result.runningTimeout_ =
+            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null
-            ? host_
-            : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.container_ = containerBuilder_ == null
-            ? container_
-            : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.encryptionKey_ = encryptionKeyBuilder_ == null
-            ? encryptionKey_
-            : encryptionKeyBuilder_.build();
+        result.encryptionKey_ =
+            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.degraded_ = degraded_;
@@ -10511,38 +12278,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig)other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -10550,7 +12318,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -10569,11 +12338,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -10616,9 +12383,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPersistentDirectoriesFieldBuilder() : null;
+            persistentDirectoriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPersistentDirectoriesFieldBuilder()
+                    : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -10651,9 +12419,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00020000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -10685,142 +12454,148 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getIdleTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getRunningTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getHostFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 106: {
-              com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.parser(),
-                      extensionRegistry);
-              if (persistentDirectoriesBuilder_ == null) {
-                ensurePersistentDirectoriesIsMutable();
-                persistentDirectories_.add(m);
-              } else {
-                persistentDirectoriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getContainerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 114
-            case 120: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 120
-            case 130: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 130
-            case 138: {
-              input.readMessage(
-                  getEncryptionKeyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 138
-            case 146: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 146
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
+                            .parser(),
+                        extensionRegistry);
+                if (persistentDirectoriesBuilder_ == null) {
+                  ensurePersistentDirectoriesIsMutable();
+                  persistentDirectories_.add(m);
+                } else {
+                  persistentDirectoriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 114
+            case 120:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 120
+            case 130:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 130
+            case 138:
+              {
+                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 138
+            case 146:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 146
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10830,22 +12605,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this resource.
      * 
* * 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; @@ -10854,20 +12632,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * 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 { @@ -10875,28 +12654,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -10906,17 +12692,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this resource.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -10926,18 +12716,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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; @@ -10946,20 +12738,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @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 { @@ -10967,28 +12760,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -10998,17 +12798,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Human-readable name for this resource.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -11018,18 +12822,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -11038,20 +12844,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -11059,28 +12866,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -11090,17 +12904,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identified for this resource.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -11108,14 +12926,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -11123,29 +12944,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether this resource is currently being updated to
      * match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -11155,8 +12982,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -11165,11 +12992,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -11178,10 +13006,13 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11189,20 +13020,21 @@ public int getAnnotationsCount() { * map<string, string> annotations = 5; */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11214,6 +13046,8 @@ public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11221,17 +13055,19 @@ public java.util.Map getAnnotationsMap() { * map<string, string> annotations = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Client-specified annotations.
      * 
@@ -11239,92 +13075,92 @@ java.lang.String getAnnotationsOrDefault( * map<string, string> annotations = 5; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Client-specified annotations.
      * 
* * map<string, string> annotations = 5; */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; 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() { 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(); @@ -11333,10 +13169,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11345,20 +13184,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 18;
      */
     @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();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11371,6 +13211,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11379,17 +13221,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        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;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11398,23 +13242,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 18;
      */
     @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();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11422,23 +13268,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18;
      */
-    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() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11446,17 +13291,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 18;
      */
-    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"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    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");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Client-specified labels that are applied to the resource and that are also
      * propagated to the underlying Compute Engine resources.
@@ -11464,49 +13312,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 18;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -11522,14 +13387,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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(); } else { @@ -11540,17 +13408,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -11563,11 +13435,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -11580,11 +13456,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -11592,36 +13472,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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. Time when this resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; @@ -11629,39 +13521,58 @@ 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_; /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @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(); } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -11677,14 +13588,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -11695,17 +13609,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -11718,11 +13636,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -11735,11 +13657,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -11747,36 +13673,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } } /** + * + * *
      * Output only. Time when this resource was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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> 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_; @@ -11784,39 +13722,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -11832,14 +13789,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -11850,17 +13810,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -11873,11 +13837,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -11890,11 +13858,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -11902,36 +13874,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this resource was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -11939,19 +13923,21 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -11960,21 +13946,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -11982,30 +13969,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -12015,18 +14009,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Checksum computed by the server. May be sent on update and delete requests
      * to ensure that the client has an up-to-date value before proceeding.
      * 
* * string etag = 9; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -12036,8 +14034,13 @@ public Builder setEtagBytes( private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + idleTimeoutBuilder_; /** + * + * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12045,12 +14048,15 @@ public Builder setEtagBytes(
      * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12058,16 +14064,21 @@ public boolean hasIdleTimeout() {
      * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + return idleTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** + * + * *
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12090,6 +14101,8 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12098,8 +14111,7 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration idle_timeout = 10;
      */
-    public Builder setIdleTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (idleTimeoutBuilder_ == null) {
         idleTimeout_ = builderForValue.build();
       } else {
@@ -12110,6 +14122,8 @@ public Builder setIdleTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12120,9 +14134,9 @@ public Builder setIdleTimeout(
      */
     public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
       if (idleTimeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0) &&
-          idleTimeout_ != null &&
-          idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0)
+            && idleTimeout_ != null
+            && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getIdleTimeoutBuilder().mergeFrom(value);
         } else {
           idleTimeout_ = value;
@@ -12135,6 +14149,8 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12154,6 +14170,8 @@ public Builder clearIdleTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12168,6 +14186,8 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
       return getIdleTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12180,11 +14200,14 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
       if (idleTimeoutBuilder_ != null) {
         return idleTimeoutBuilder_.getMessageOrBuilder();
       } else {
-        return idleTimeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_;
+        return idleTimeout_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : idleTimeout_;
       }
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping an instance that hasn't
      * received any user traffic. A value of 0 indicates that this instance
@@ -12194,14 +14217,17 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * .google.protobuf.Duration idle_timeout = 10;
      */
     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>
         getIdleTimeoutFieldBuilder() {
       if (idleTimeoutBuilder_ == null) {
-        idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getIdleTimeout(),
-                getParentForChildren(),
-                isClean());
+        idleTimeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getIdleTimeout(), getParentForChildren(), isClean());
         idleTimeout_ = null;
       }
       return idleTimeoutBuilder_;
@@ -12209,8 +14235,13 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
 
     private com.google.protobuf.Duration runningTimeout_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        runningTimeoutBuilder_;
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12219,12 +14250,15 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12233,16 +14267,21 @@ public boolean hasRunningTimeout() {
      * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** + * + * *
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12266,6 +14305,8 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12275,8 +14316,7 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration running_timeout = 11;
      */
-    public Builder setRunningTimeout(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) {
       if (runningTimeoutBuilder_ == null) {
         runningTimeout_ = builderForValue.build();
       } else {
@@ -12287,6 +14327,8 @@ public Builder setRunningTimeout(
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12298,9 +14340,9 @@ public Builder setRunningTimeout(
      */
     public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
       if (runningTimeoutBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0) &&
-          runningTimeout_ != null &&
-          runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0)
+            && runningTimeout_ != null
+            && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getRunningTimeoutBuilder().mergeFrom(value);
         } else {
           runningTimeout_ = value;
@@ -12313,6 +14355,8 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12333,6 +14377,8 @@ public Builder clearRunningTimeout() {
       return this;
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12348,6 +14394,8 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
       return getRunningTimeoutFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12361,11 +14409,14 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
       if (runningTimeoutBuilder_ != null) {
         return runningTimeoutBuilder_.getMessageOrBuilder();
       } else {
-        return runningTimeout_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_;
+        return runningTimeout_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : runningTimeout_;
       }
     }
     /**
+     *
+     *
      * 
      * How long to wait before automatically stopping a workstation after it
      * started. A value of 0 indicates that workstations using this configuration
@@ -12376,14 +14427,17 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * .google.protobuf.Duration running_timeout = 11;
      */
     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>
         getRunningTimeoutFieldBuilder() {
       if (runningTimeoutBuilder_ == null) {
-        runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getRunningTimeout(),
-                getParentForChildren(),
-                isClean());
+        runningTimeoutBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getRunningTimeout(), getParentForChildren(), isClean());
         runningTimeout_ = null;
       }
       return runningTimeoutBuilder_;
@@ -12391,34 +14445,47 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
 
     private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> hostBuilder_;
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Host,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>
+        hostBuilder_;
     /**
+     *
+     *
      * 
      * Runtime host for the workstation.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; + * * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Runtime host for the workstation.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; + * * @return The host. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } else { return hostBuilder_.getMessage(); } } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12439,6 +14506,8 @@ public Builder setHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Ho return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12457,6 +14526,8 @@ public Builder setHost( return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12465,9 +14536,11 @@ public Builder setHost( */ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - host_ != null && - host_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && host_ != null + && host_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host + .getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -12480,6 +14553,8 @@ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig. return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12497,6 +14572,8 @@ public Builder clearHost() { return this; } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12509,6 +14586,8 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder getHo return getHostFieldBuilder().getBuilder(); } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12519,11 +14598,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getH if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } } /** + * + * *
      * Runtime host for the workstation.
      * 
@@ -12531,39 +14613,56 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getH * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( - getHost(), - getParentForChildren(), - isClean()); + hostBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( + getHost(), getParentForChildren(), isClean()); host_ = null; } return hostBuilder_; } - private java.util.List persistentDirectories_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> + persistentDirectories_ = java.util.Collections.emptyList(); + private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); + persistentDirectories_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory>( + persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + persistentDirectoriesBuilder_; /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public java.util.List getPersistentDirectoriesList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> + getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -12571,11 +14670,15 @@ public java.util.List * Directories to persist across workstation sessions. *
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -12585,13 +14688,18 @@ public int getPersistentDirectoriesCount() { } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -12599,14 +14707,19 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder setPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12620,14 +14733,20 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder setPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -12638,13 +14757,18 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public Builder addPersistentDirectories(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12658,14 +14782,19 @@ public Builder addPersistentDirectories(com.google.cloud.workstations.v1beta.Wor return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12679,14 +14808,19 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -12697,14 +14831,20 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -12715,18 +14855,24 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder addAllPersistentDirectories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> + values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -12734,11 +14880,15 @@ public Builder addAllPersistentDirectories( return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -12751,11 +14901,15 @@ public Builder clearPersistentDirectories() { return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -12768,39 +14922,54 @@ public Builder removePersistentDirectories(int index) { return this; } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + getPersistentDirectoriesBuilder(int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); } else { + return persistentDirectories_.get(index); + } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public java.util.List - getPersistentDirectoriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -12808,45 +14977,71 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( - int index) { - return getPersistentDirectoriesFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder(int index) { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - public java.util.List - getPersistentDirectoriesBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder> + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig + .PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -12858,36 +15053,49 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> containerBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> + containerBuilder_; /** + * + * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; + * * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
      * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; + * * @return The container. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() + : container_; } else { return containerBuilder_.getMessage(); } } /** + * + * *
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12895,7 +15103,8 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getConta
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public Builder setContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
+    public Builder setContainer(
+        com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
       if (containerBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -12909,6 +15118,8 @@ public Builder setContainer(com.google.cloud.workstations.v1beta.WorkstationConf
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12928,6 +15139,8 @@ public Builder setContainer(
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12935,11 +15148,14 @@ public Builder setContainer(
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public Builder mergeContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
+    public Builder mergeContainer(
+        com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) {
       if (containerBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          container_ != null &&
-          container_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && container_ != null
+            && container_
+                != com.google.cloud.workstations.v1beta.WorkstationConfig.Container
+                    .getDefaultInstance()) {
           getContainerBuilder().mergeFrom(value);
         } else {
           container_ = value;
@@ -12952,6 +15168,8 @@ public Builder mergeContainer(com.google.cloud.workstations.v1beta.WorkstationCo
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12970,6 +15188,8 @@ public Builder clearContainer() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12977,12 +15197,15 @@ public Builder clearContainer() {
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder getContainerBuilder() {
+    public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder
+        getContainerBuilder() {
       bitField0_ |= 0x00004000;
       onChanged();
       return getContainerFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -12990,15 +15213,19 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder
      *
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
-    public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() {
+    public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
+        getContainerOrBuilder() {
       if (containerBuilder_ != null) {
         return containerBuilder_.getMessageOrBuilder();
       } else {
-        return container_ == null ?
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_;
+        return container_ == null
+            ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()
+            : container_;
       }
     }
     /**
+     *
+     *
      * 
      * Container that will be run for each workstation using this configuration
      * when that workstation is started.
@@ -13007,23 +15234,32 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
      * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> 
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Container,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>
         getContainerFieldBuilder() {
       if (containerBuilder_ == null) {
-        containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>(
-                getContainer(),
-                getParentForChildren(),
-                isClean());
+        containerBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.workstations.v1beta.WorkstationConfig.Container,
+                com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder,
+                com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>(
+                getContainer(), getParentForChildren(), isClean());
         container_ = null;
       }
       return containerBuilder_;
     }
 
-    private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_;
+    private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey
+        encryptionKey_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_;
+            com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder>
+        encryptionKeyBuilder_;
     /**
+     *
+     *
      * 
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13040,13 +15276,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13063,17 +15304,26 @@ public boolean hasEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return The encryptionKey. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13090,9 +15340,12 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13106,6 +15359,8 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13122,10 +15377,13 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.Workstation
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder + builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -13136,6 +15394,8 @@ public Builder setEncryptionKey( return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13152,13 +15412,18 @@ public Builder setEncryptionKey(
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - encryptionKey_ != null && - encryptionKey_ != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && encryptionKey_ != null + && encryptionKey_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -13171,6 +15436,8 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.Workstati return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13187,7 +15454,9 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.Workstati
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00008000); @@ -13200,6 +15469,8 @@ public Builder clearEncryptionKey() { return this; } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13216,14 +15487,19 @@ public Builder clearEncryptionKey() {
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder + getEncryptionKeyBuilder() { bitField0_ |= 0x00008000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13240,17 +15516,24 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } } /** + * + * *
      * Encrypts resources of this workstation configuration using a
      * customer-managed encryption key.
@@ -13267,24 +15550,33 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * automatically be stopped within 7 hours.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), - getParentForChildren(), - isClean()); + encryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig + .CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -13292,6 +15584,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -13299,6 +15592,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -13306,17 +15601,20 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ public Builder setDegraded(boolean value) { - + degraded_ = value; bitField0_ |= 0x00010000; onChanged(); return this; } /** + * + * *
      * Output only. Whether this resource is in degraded mode, in which case it
      * may require user action to restore full functionality. Details can be found
@@ -13324,6 +15622,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -13333,24 +15632,29 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00020000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -13360,11 +15664,15 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -13374,11 +15682,15 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -13388,14 +15700,17 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13409,14 +15724,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -13427,11 +15745,15 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -13447,14 +15769,17 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13468,14 +15793,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -13486,14 +15814,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -13504,18 +15835,20 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -13523,11 +15856,15 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -13540,11 +15877,15 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -13557,39 +15898,49 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -13597,56 +15948,66 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - 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> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00020000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -13656,12 +16017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig) private static final com.google.cloud.workstations.v1beta.WorkstationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig(); } @@ -13670,27 +16031,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13705,6 +16066,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java index c5ba0da83b99..72d9e2353375 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java @@ -1,84 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationConfigOrBuilder extends +public interface WorkstationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -87,30 +123,31 @@ public interface WorkstationConfigOrBuilder extends */ int getAnnotationsCount(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -118,21 +155,24 @@ boolean containsAnnotations( * map<string, string> annotations = 5; */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -142,6 +182,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -149,15 +191,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 18;
    */
-  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();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -165,9 +205,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 18;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -176,11 +217,13 @@ boolean containsLabels(
    * map<string, string> labels = 18;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -188,113 +231,152 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -302,10 +384,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -313,10 +398,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration idle_timeout = 10; + * * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** + * + * *
    * How long to wait before automatically stopping an instance that hasn't
    * received any user traffic. A value of 0 indicates that this instance
@@ -328,6 +416,8 @@ java.lang.String getLabelsOrThrow(
   com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -336,10 +426,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -348,10 +441,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * .google.protobuf.Duration running_timeout = 11; + * * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** + * + * *
    * How long to wait before automatically stopping a workstation after it
    * started. A value of 0 indicates that workstations using this configuration
@@ -364,24 +460,32 @@ java.lang.String getLabelsOrThrow(
   com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder();
 
   /**
+   *
+   *
    * 
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; + * * @return Whether the host field is set. */ boolean hasHost(); /** + * + * *
    * Runtime host for the workstation.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12; + * * @return The host. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost(); /** + * + * *
    * Runtime host for the workstation.
    * 
@@ -391,70 +495,101 @@ java.lang.String getLabelsOrThrow( com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ int getPersistentDirectoriesCount(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList(); /** + * + * *
    * Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index); /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; + * * @return Whether the container field is set. */ boolean hasContainer(); /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
    * 
* * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14; + * * @return The container. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer(); /** + * + * *
    * Container that will be run for each workstation using this configuration
    * when that workstation is started.
@@ -465,6 +600,8 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuil
   com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder();
 
   /**
+   *
+   *
    * 
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -481,11 +618,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuil
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -502,11 +644,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuil
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * * @return The encryptionKey. */ com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** + * + * *
    * Encrypts resources of this workstation configuration using a
    * customer-managed encryption key.
@@ -523,11 +670,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuil
    * automatically be stopped within 7 hours.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder(); /** + * + * *
    * Output only. Whether this resource is in degraded mode, in which case it
    * may require user action to restore full functionality. Details can be found
@@ -535,51 +687,64 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuil
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java index ee88c8c3d60f..ef067c8a562f 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java @@ -1,84 +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/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationOrBuilder extends +public interface WorkstationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.Workstation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this resource.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Human-readable name for this resource.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identified for this resource.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this resource is currently being updated to
    * match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -87,30 +123,31 @@ public interface WorkstationOrBuilder extends */ int getAnnotationsCount(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Client-specified annotations.
    * 
@@ -118,21 +155,24 @@ boolean containsAnnotations( * map<string, string> annotations = 5; */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Client-specified annotations.
    * 
* * map<string, string> annotations = 5; */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -142,6 +182,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -149,15 +191,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 13;
    */
-  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();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -165,9 +205,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 13;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -176,11 +217,13 @@ boolean containsLabels(
    * map<string, string> labels = 13;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Client-specified labels that are applied to the resource and that are also
    * propagated to the underlying Compute Engine resources.
@@ -188,132 +231,181 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this resource was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this resource was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Checksum computed by the server. May be sent on update and delete requests
    * to ensure that the client has an up-to-date value before proceeding.
    * 
* * string etag = 9; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workstations.v1beta.Workstation.State getState(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -323,10 +415,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -336,8 +431,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java new file mode 100644 index 000000000000..9eae902e39b8 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java @@ -0,0 +1,1101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public final class WorkstationsProto { + private WorkstationsProto() {} + + 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_workstations_v1beta_WorkstationCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/workstations/v1beta/works" + + "tations.proto\022 google.cloud.workstations" + + ".v1beta\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\036google/protobuf/duration.proto\032 google/" + + "protobuf/field_mask.proto\032\037google/protob" + + "uf/timestamp.proto\032\027google/rpc/status.pr" + + "oto\"\255\010\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003" + + "\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022Z\n\013annotation" + + "s\030\005 \003(\0132E.google.cloud.workstations.v1be" + + "ta.WorkstationCluster.AnnotationsEntry\022P" + + "\n\006labels\030\017 \003(\0132@.google.cloud.workstatio" + + "ns.v1beta.WorkstationCluster.LabelsEntry" + + "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\014\n\004etag\030\t \001(\t\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027" + + "\n\nsubnetwork\030\013 \001(\tB\003\340A\005\022i\n\026private_clust" + + "er_config\030\014 \001(\0132I.google.cloud.workstati" + + "ons.v1beta.WorkstationCluster.PrivateClu" + + "sterConfig\022\025\n\010degraded\030\r \001(\010B\003\340A\003\022+\n\ncon" + + "ditions\030\016 \003(\0132\022.google.rpc.StatusB\003\340A\003\032\232" + + "\001\n\024PrivateClusterConfig\022$\n\027enable_privat" + + "e_endpoint\030\001 \001(\010B\003\340A\005\022\035\n\020cluster_hostnam" + + "e\030\002 \001(\tB\003\340A\003\022#\n\026service_attachment_uri\030\003" + + " \001(\tB\003\340A\003\022\030\n\020allowed_projects\030\004 \003(\t\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:\212\001\352A\206\001\n.workstations.goog" + + "leapis.com/WorkstationCluster\022Qprojects/" + + "{project}/locations/{location}/workstati" + + "onClusters/{workstation_cluster}R\001\001\"\341\025\n\021" + + "WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" + + "ay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013recon" + + "ciling\030\004 \001(\010B\003\340A\003\022Y\n\013annotations\030\005 \003(\0132D" + + ".google.cloud.workstations.v1beta.Workst" + + "ationConfig.AnnotationsEntry\022O\n\006labels\030\022" + + " \003(\0132?.google.cloud.workstations.v1beta." + + "WorkstationConfig.LabelsEntry\0224\n\013create_" + + "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030" + + "\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132\031.google.pro" + + "tobuf.Duration\0222\n\017running_timeout\030\013 \001(\0132" + + "\031.google.protobuf.Duration\022F\n\004host\030\014 \001(\013" + + "28.google.cloud.workstations.v1beta.Work" + + "stationConfig.Host\022g\n\026persistent_directo" + + "ries\030\r \003(\0132G.google.cloud.workstations.v" + + "1beta.WorkstationConfig.PersistentDirect" + + "ory\022P\n\tcontainer\030\016 \001(\0132=.google.cloud.wo" + + "rkstations.v1beta.WorkstationConfig.Cont" + + "ainer\022a\n\016encryption_key\030\021 \001(\0132I.google.c" + + "loud.workstations.v1beta.WorkstationConf" + + "ig.CustomerEncryptionKey\022\025\n\010degraded\030\017 \001" + + "(\010B\003\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc" + + ".StatusB\003\340A\003\032\325\005\n\004Host\022\\\n\014gce_instance\030\001 " + + "\001(\0132D.google.cloud.workstations.v1beta.W" + + "orkstationConfig.Host.GceInstanceH\000\032\344\004\n\013" + + "GceInstance\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017ser" + + "vice_account\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool" + + "_size\030\005 \001(\005\022#\n\033disable_public_ip_address" + + "es\030\006 \001(\010\022\200\001\n\030shielded_instance_config\030\010 " + + "\001(\0132^.google.cloud.workstations.v1beta.W" + + "orkstationConfig.Host.GceInstance.GceShi" + + "eldedInstanceConfig\022\210\001\n\034confidential_ins" + + "tance_config\030\n \001(\0132b.google.cloud.workst" + + "ations.v1beta.WorkstationConfig.Host.Gce" + + "Instance.GceConfidentialInstanceConfig\022\031" + + "\n\021boot_disk_size_gb\030\t \001(\005\032q\n\031GceShielded" + + "InstanceConfig\022\032\n\022enable_secure_boot\030\001 \001" + + "(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable_integr" + + "ity_monitoring\030\003 \001(\010\032D\n\035GceConfidentialI" + + "nstanceConfig\022#\n\033enable_confidential_com" + + "pute\030\001 \001(\010B\010\n\006config\032\357\003\n\023PersistentDirec" + + "tory\022\022\n\nmount_path\030\001 \001(\t\022s\n\006gce_pd\030\002 \001(\013" + + "2a.google.cloud.workstations.v1beta.Work" + + "stationConfig.PersistentDirectory.GceReg" + + "ionalPersistentDiskH\000\032\274\002\n\031GceRegionalPer" + + "sistentDisk\022\017\n\007size_gb\030\001 \001(\005\022\017\n\007fs_type\030" + + "\002 \001(\t\022\021\n\tdisk_type\030\003 \001(\t\022\027\n\017source_snaps" + + "hot\030\005 \001(\t\022\207\001\n\016reclaim_policy\030\004 \001(\0162o.goo" + + "gle.cloud.workstations.v1beta.Workstatio" + + "nConfig.PersistentDirectory.GceRegionalP" + + "ersistentDisk.ReclaimPolicy\"G\n\rReclaimPo" + + "licy\022\036\n\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006" + + "DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\344" + + "\001\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002" + + " \003(\t\022\014\n\004args\030\003 \003(\t\022S\n\003env\030\004 \003(\0132F.google" + + ".cloud.workstations.v1beta.WorkstationCo" + + "nfig.Container.EnvEntry\022\023\n\013working_dir\030\005" + + " \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010EnvEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I\n\025Custome" + + "rEncryptionKey\022\017\n\007kms_key\030\001 \001(\t\022\037\n\027kms_k" + + "ey_service_account\030\002 \001(\t\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\261\001\352A\255\001\n-workstations.googleapis.com/" + + "WorkstationConfig\022yprojects/{project}/lo" + + "cations/{location}/workstationClusters/{" + + "workstation_cluster}/workstationConfigs/" + + "{workstation_config}R\001\001\"\244\007\n\013Workstation\022" + + "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003u" + + "id\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022" + + "S\n\013annotations\030\005 \003(\0132>.google.cloud.work" + + "stations.v1beta.Workstation.AnnotationsE" + + "ntry\022I\n\006labels\030\r \003(\01329.google.cloud.work" + + "stations.v1beta.Workstation.LabelsEntry\022" + + "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" + + "me\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022\014\n\004etag\030\t \001(\t\022G\n\005state\030\n \001(\01623.google." + + "cloud.workstations.v1beta.Workstation.St" + + "ateB\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020Annotatio" + + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022" + + "\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n" + + "\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352" + + "A\303\001\n\'workstations.googleapis.com/Worksta" + + "tion\022\224\001projects/{project}/locations/{loc" + + "ation}/workstationClusters/{workstation_" + + "cluster}/workstationConfigs/{workstation" + + "_config}/workstations/{workstation}R\001\001\"d" + + "\n\034GetWorkstationClusterRequest\022D\n\004name\030\001" + + " \001(\tB6\340A\002\372A0\n.workstations.googleapis.co" + + "m/WorkstationCluster\"\217\001\n\036ListWorkstation" + + "ClustersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022" + + ".workstations.googleapis.com/Workstation" + + "Cluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"\243\001\n\037ListWorkstationClustersRespon" + + "se\022R\n\024workstation_clusters\030\001 \003(\01324.googl" + + "e.cloud.workstations.v1beta.WorkstationC" + + "luster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\375\001\n\037CreateWorkstationCluste" + + "rRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workst" + + "ations.googleapis.com/WorkstationCluster" + + "\022#\n\026workstation_cluster_id\030\002 \001(\tB\003\340A\002\022V\n" + + "\023workstation_cluster\030\003 \001(\01324.google.clou" + + "d.workstations.v1beta.WorkstationCluster" + + "B\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\335\001\n\037UpdateW" + + "orkstationClusterRequest\022V\n\023workstation_" + + "cluster\030\001 \001(\01324.google.cloud.workstation" + + "s.v1beta.WorkstationClusterB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_m" + + "issing\030\004 \001(\010\"\233\001\n\037DeleteWorkstationCluste" + + "rRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.workstat" + + "ions.googleapis.com/WorkstationCluster\022\025" + + "\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005f" + + "orce\030\004 \001(\010\"b\n\033GetWorkstationConfigReques" + + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstations.go" + + "ogleapis.com/WorkstationConfig\"\216\001\n\035ListW" + + "orkstationConfigsRequest\022F\n\006parent\030\001 \001(\t" + + "B6\340A\002\372A0\n.workstations.googleapis.com/Wo" + + "rkstationCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\240\001\n\036ListWorkstationConfi" + + "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" + + "3.google.cloud.workstations.v1beta.Works" + + "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\224\001\n#ListUsableWorksta" + + "tionConfigsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + + "A0\n.workstations.googleapis.com/Workstat" + + "ionCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"\246\001\n$ListUsableWorkstationConfi" + + "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" + + "3.google.cloud.workstations.v1beta.Works" + + "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\371\001\n\036CreateWorkstation" + + "ConfigRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.w" + + "orkstations.googleapis.com/WorkstationCl" + + "uster\022\"\n\025workstation_config_id\030\002 \001(\tB\003\340A" + + "\002\022T\n\022workstation_config\030\003 \001(\01323.google.c" + + "loud.workstations.v1beta.WorkstationConf" + + "igB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\332\001\n\036Updat" + + "eWorkstationConfigRequest\022T\n\022workstation" + + "_config\030\001 \001(\01323.google.cloud.workstation" + + "s.v1beta.WorkstationConfigB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" + + "ssing\030\004 \001(\010\"\231\001\n\036DeleteWorkstationConfigR" + + "equest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstatio" + + "ns.googleapis.com/WorkstationConfig\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005forc" + + "e\030\004 \001(\010\"V\n\025GetWorkstationRequest\022=\n\004name" + + "\030\001 \001(\tB/\340A\002\372A)\n\'workstations.googleapis." + + "com/Workstation\"\207\001\n\027ListWorkstationsRequ" + + "est\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-workstation" + + "s.googleapis.com/WorkstationConfig\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\215\001\n\030Li" + + "stWorkstationsResponse\022C\n\014workstations\030\001" + + " \003(\0132-.google.cloud.workstations.v1beta." + + "Workstation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWorkstat" + + "ionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wor" + + "kstations.googleapis.com/WorkstationConf" + + "ig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\223\001\n\036ListUsableWorkstationsResponse\022C\n\014" + + "workstations\030\001 \003(\0132-.google.cloud.workst" + + "ations.v1beta.Workstation\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\336\001\n\030Crea" + + "teWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340A" + + "\002\372A/\n-workstations.googleapis.com/Workst" + + "ationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A\002" + + "\022G\n\013workstation\030\003 \001(\0132-.google.cloud.wor" + + "kstations.v1beta.WorkstationB\003\340A\002\022\025\n\rval" + + "idate_only\030\004 \001(\010\"\307\001\n\030UpdateWorkstationRe" + + "quest\022G\n\013workstation\030\001 \001(\0132-.google.clou" + + "d.workstations.v1beta.WorkstationB\003\340A\002\0224" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\ra" + + "llow_missing\030\004 \001(\010\"~\n\030DeleteWorkstationR" + + "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" + + "ns.googleapis.com/Workstation\022\025\n\rvalidat" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorks" + + "tationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'wor" + + "kstations.googleapis.com/Workstation\022\025\n\r" + + "validate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026Sto" + + "pWorkstationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A" + + ")\n\'workstations.googleapis.com/Workstati" + + "on\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"" + + "\315\001\n\032GenerateAccessTokenRequest\022D\n\013workst" + + "ation\030\001 \001(\tB/\340A\002\372A)\n\'workstations.google" + + "apis.com/Workstation\0221\n\013expire_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampH\000\022(\n\003ttl\030\003" + + " \001(\0132\031.google.protobuf.DurationH\000B\014\n\nexp" + + "iration\"d\n\033GenerateAccessTokenResponse\022\024" + + "\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp\"\200\002\n\021Operat" + + "ionMetadata\0224\n\013create_time\030\001 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" + + "target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016" + + "status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_c" + + "ancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 " + + "\001(\tB\003\340A\0032\337+\n\014Workstations\022\331\001\n\025GetWorksta" + + "tionCluster\022>.google.cloud.workstations." + + "v1beta.GetWorkstationClusterRequest\0324.go" + + "ogle.cloud.workstations.v1beta.Workstati" + + "onCluster\"J\202\323\344\223\002=\022;/v1beta/{name=project" + + "s/*/locations/*/workstationClusters/*}\332A" + + "\004name\022\354\001\n\027ListWorkstationClusters\022@.goog" + + "le.cloud.workstations.v1beta.ListWorksta" + + "tionClustersRequest\032A.google.cloud.works" + + "tations.v1beta.ListWorkstationClustersRe" + + "sponse\"L\202\323\344\223\002=\022;/v1beta/{parent=projects" + + "/*/locations/*}/workstationClusters\332A\006pa" + + "rent\022\265\002\n\030CreateWorkstationCluster\022A.goog" + + "le.cloud.workstations.v1beta.CreateWorks" + + "tationClusterRequest\032\035.google.longrunnin" + + "g.Operation\"\266\001\202\323\344\223\002R\";/v1beta/{parent=pr" + + "ojects/*/locations/*}/workstationCluster" + + "s:\023workstation_cluster\332A1parent,workstat" + + "ion_cluster,workstation_cluster_id\312A\'\n\022W" + + "orkstationCluster\022\021OperationMetadata\022\267\002\n" + + "\030UpdateWorkstationCluster\022A.google.cloud" + + ".workstations.v1beta.UpdateWorkstationCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"\270\001\202\323\344\223\002f2O/v1beta/{workstation_clust" + + "er.name=projects/*/locations/*/workstati" + + "onClusters/*}:\023workstation_cluster\332A\037wor" + + "kstation_cluster,update_mask\312A\'\n\022Worksta" + + "tionCluster\022\021OperationMetadata\022\362\001\n\030Delet" + + "eWorkstationCluster\022A.google.cloud.works" + + "tations.v1beta.DeleteWorkstationClusterR" + + "equest\032\035.google.longrunning.Operation\"t\202" + + "\323\344\223\002=*;/v1beta/{name=projects/*/location" + + "s/*/workstationClusters/*}\332A\004name\312A\'\n\022Wo" + + "rkstationCluster\022\021OperationMetadata\022\353\001\n\024" + + "GetWorkstationConfig\022=.google.cloud.work" + + "stations.v1beta.GetWorkstationConfigRequ" + + "est\0323.google.cloud.workstations.v1beta.W" + + "orkstationConfig\"_\202\323\344\223\002R\022P/v1beta/{name=" + + "projects/*/locations/*/workstationCluste" + + "rs/*/workstationConfigs/*}\332A\004name\022\376\001\n\026Li" + + "stWorkstationConfigs\022?.google.cloud.work" + + "stations.v1beta.ListWorkstationConfigsRe" + + "quest\032@.google.cloud.workstations.v1beta" + + ".ListWorkstationConfigsResponse\"a\202\323\344\223\002R\022" + + "P/v1beta/{parent=projects/*/locations/*/" + + "workstationClusters/*}/workstationConfig" + + "s\332A\006parent\022\233\002\n\034ListUsableWorkstationConf" + + "igs\022E.google.cloud.workstations.v1beta.L" + + "istUsableWorkstationConfigsRequest\032F.goo" + + "gle.cloud.workstations.v1beta.ListUsable" + + "WorkstationConfigsResponse\"l\202\323\344\223\002]\022[/v1b" + + "eta/{parent=projects/*/locations/*/works" + + "tationClusters/*}/workstationConfigs:lis" + + "tUsable\332A\006parent\022\304\002\n\027CreateWorkstationCo" + + "nfig\022@.google.cloud.workstations.v1beta." + + "CreateWorkstationConfigRequest\032\035.google." + + "longrunning.Operation\"\307\001\202\323\344\223\002f\"P/v1beta/" + + "{parent=projects/*/locations/*/workstati" + + "onClusters/*}/workstationConfigs:\022workst" + + "ation_config\332A/parent,workstation_config" + + ",workstation_config_id\312A&\n\021WorkstationCo" + + "nfig\022\021OperationMetadata\022\306\002\n\027UpdateWorkst" + + "ationConfig\022@.google.cloud.workstations." + + "v1beta.UpdateWorkstationConfigRequest\032\035." + + "google.longrunning.Operation\"\311\001\202\323\344\223\002y2c/" + + "v1beta/{workstation_config.name=projects" + + "/*/locations/*/workstationClusters/*/wor" + + "kstationConfigs/*}:\022workstation_config\332A" + + "\036workstation_config,update_mask\312A&\n\021Work" + + "stationConfig\022\021OperationMetadata\022\205\002\n\027Del" + + "eteWorkstationConfig\022@.google.cloud.work" + + "stations.v1beta.DeleteWorkstationConfigR" + + "equest\032\035.google.longrunning.Operation\"\210\001" + + "\202\323\344\223\002R*P/v1beta/{name=projects/*/locatio" + + "ns/*/workstationClusters/*/workstationCo" + + "nfigs/*}\332A\004name\312A&\n\021WorkstationConfig\022\021O" + + "perationMetadata\022\350\001\n\016GetWorkstation\0227.go" + + "ogle.cloud.workstations.v1beta.GetWorkst" + + "ationRequest\032-.google.cloud.workstations" + + ".v1beta.Workstation\"n\202\323\344\223\002a\022_/v1beta/{na" + + "me=projects/*/locations/*/workstationClu" + + "sters/*/workstationConfigs/*/workstation" + + "s/*}\332A\004name\022\373\001\n\020ListWorkstations\0229.googl" + + "e.cloud.workstations.v1beta.ListWorkstat" + + "ionsRequest\032:.google.cloud.workstations." + + "v1beta.ListWorkstationsResponse\"p\202\323\344\223\002a\022" + + "_/v1beta/{parent=projects/*/locations/*/" + + "workstationClusters/*/workstationConfigs" + + "/*}/workstations\332A\006parent\022\230\002\n\026ListUsable" + + "Workstations\022?.google.cloud.workstations" + + ".v1beta.ListUsableWorkstationsRequest\032@." + + "google.cloud.workstations.v1beta.ListUsa" + + "bleWorkstationsResponse\"{\202\323\344\223\002l\022j/v1beta" + + "/{parent=projects/*/locations/*/workstat" + + "ionClusters/*/workstationConfigs/*}/work" + + "stations:listUsable\332A\006parent\022\254\002\n\021CreateW" + + "orkstation\022:.google.cloud.workstations.v" + + "1beta.CreateWorkstationRequest\032\035.google." + + "longrunning.Operation\"\273\001\202\323\344\223\002n\"_/v1beta/" + + "{parent=projects/*/locations/*/workstati" + + "onClusters/*/workstationConfigs/*}/works" + + "tations:\013workstation\332A!parent,workstatio" + + "n,workstation_id\312A \n\013Workstation\022\021Operat" + + "ionMetadata\022\256\002\n\021UpdateWorkstation\022:.goog" + + "le.cloud.workstations.v1beta.UpdateWorks" + + "tationRequest\032\035.google.longrunning.Opera" + + "tion\"\275\001\202\323\344\223\002z2k/v1beta/{workstation.name" + + "=projects/*/locations/*/workstationClust" + + "ers/*/workstationConfigs/*/workstations/" + + "*}:\013workstation\332A\027workstation,update_mas" + + "k\312A \n\013Workstation\022\021OperationMetadata\022\202\002\n" + + "\021DeleteWorkstation\022:.google.cloud.workst" + + "ations.v1beta.DeleteWorkstationRequest\032\035" + + ".google.longrunning.Operation\"\221\001\202\323\344\223\002a*_" + + "/v1beta/{name=projects/*/locations/*/wor" + + "kstationClusters/*/workstationConfigs/*/" + + "workstations/*}\332A\004name\312A \n\013Workstation\022\021" + + "OperationMetadata\022\211\002\n\020StartWorkstation\0229" + + ".google.cloud.workstations.v1beta.StartW" + + "orkstationRequest\032\035.google.longrunning.O" + + "peration\"\232\001\202\323\344\223\002j\"e/v1beta/{name=project" + + "s/*/locations/*/workstationClusters/*/wo" + + "rkstationConfigs/*/workstations/*}:start" + + ":\001*\332A\004name\312A \n\013Workstation\022\021OperationMet" + + "adata\022\206\002\n\017StopWorkstation\0228.google.cloud" + + ".workstations.v1beta.StopWorkstationRequ" + + "est\032\035.google.longrunning.Operation\"\231\001\202\323\344" + + "\223\002i\"d/v1beta/{name=projects/*/locations/" + + "*/workstationClusters/*/workstationConfi" + + "gs/*/workstations/*}:stop:\001*\332A\004name\312A \n\013" + + "Workstation\022\021OperationMetadata\022\250\002\n\023Gener" + + "ateAccessToken\022<.google.cloud.workstatio" + + "ns.v1beta.GenerateAccessTokenRequest\032=.g" + + "oogle.cloud.workstations.v1beta.Generate" + + "AccessTokenResponse\"\223\001\202\323\344\223\002\177\"z/v1beta/{w" + + "orkstation=projects/*/locations/*/workst" + + "ationClusters/*/workstationConfigs/*/wor" + + "kstations/*}:generateAccessToken:\001*\332A\013wo" + + "rkstation\032O\312A\033workstations.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\205\001\n$com.google.cloud.workstat" + + "ions.v1betaB\021WorkstationsProtoP\001ZHcloud." + + "google.com/go/workstations/apiv1beta/wor" + + "kstationspb;workstationspbb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "Network", + "Subnetwork", + "PrivateClusterConfig", + "Degraded", + "Conditions", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor, + new java.lang.String[] { + "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "IdleTimeout", + "RunningTimeout", + "Host", + "PersistentDirectories", + "Container", + "EncryptionKey", + "Degraded", + "Conditions", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor, + new java.lang.String[] { + "GceInstance", "Config", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor, + new java.lang.String[] { + "MachineType", + "ServiceAccount", + "Tags", + "PoolSize", + "DisablePublicIpAddresses", + "ShieldedInstanceConfig", + "ConfidentialInstanceConfig", + "BootDiskSizeGb", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, + new java.lang.String[] { + "EnableConfidentialCompute", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor, + new java.lang.String[] { + "MountPath", "GcePd", "DirectoryType", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, + new java.lang.String[] { + "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor, + new java.lang.String[] { + "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor, + new java.lang.String[] { + "KmsKey", "KmsKeyServiceAccount", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "State", + "Host", + }); + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1beta_Workstation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor, + new java.lang.String[] { + "WorkstationClusters", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", "Force", + }); + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor, + new java.lang.String[] { + "WorkstationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor, + new java.lang.String[] { + "WorkstationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", "Force", + }); + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor, + new java.lang.String[] { + "Workstations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor, + new java.lang.String[] { + "Workstations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationId", "Workstation", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor, + new java.lang.String[] { + "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor, + new java.lang.String[] { + "Workstation", "ExpireTime", "Ttl", "Expiration", + }); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor, + new java.lang.String[] { + "AccessToken", "ExpireTime", + }); + internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java deleted file mode 100644 index e81d3fa7b77d..000000000000 --- a/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java +++ /dev/null @@ -1,1969 +0,0 @@ -package com.google.cloud.workstations.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service for interacting with Cloud Workstations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationMethod() { - io.grpc.MethodDescriptor getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationsMethod() { - io.grpc.MethodDescriptor getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { - io.grpc.MethodDescriptor getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartWorkstationMethod() { - io.grpc.MethodDescriptor getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopWorkstationMethod() { - io.grpc.MethodDescriptor getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WorkstationsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns all WorkstationConfigs in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - default void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static abstract class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all WorkstationConfigs in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all WorkstationConfigs in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1.Workstation getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all WorkstationConfigs in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstation( - com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstations( - com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstation( - com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstation( - com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( - com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startWorkstation( - com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopWorkstation( - com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateAccessToken( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation((com.google.cloud.workstations.v1.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations((com.google.cloud.workstations.v1.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation((com.google.cloud.workstations.v1.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation((com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation((com.google.cloud.workstations.v1.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation((com.google.cloud.workstations.v1.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationRequest, - com.google.cloud.workstations.v1.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationsRequest, - com.google.cloud.workstations.v1.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.StartWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.StopWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private static abstract class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index de5face476b3..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index 82930ab5dfad..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index 83c5b482bd3f..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java deleted file mode 100644 index 486fc905a29e..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java +++ /dev/null @@ -1,947 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public final class WorkstationsProto { - private WorkstationsProto() {} - 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_workstations_v1_WorkstationCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" + - "ons.proto\022\034google.cloud.workstations.v1\032" + - "\034google/api/annotations.proto\032\027google/ap" + - "i/client.proto\032\037google/api/field_behavio" + - "r.proto\032\031google/api/resource.proto\032#goog" + - "le/longrunning/operations.proto\032\036google/" + - "protobuf/duration.proto\032 google/protobuf" + - "/field_mask.proto\032\037google/protobuf/times" + - "tamp.proto\032\027google/rpc/status.proto\"\241\010\n\022" + - "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" + - "lay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013reco" + - "nciling\030\004 \001(\010B\003\340A\003\022V\n\013annotations\030\005 \003(\0132" + - "A.google.cloud.workstations.v1.Workstati" + - "onCluster.AnnotationsEntry\022L\n\006labels\030\017 \003" + - "(\0132<.google.cloud.workstations.v1.Workst" + - "ationCluster.LabelsEntry\0224\n\013create_time\030" + - "\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + - "\n\013update_time\030\007 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goog" + - "le.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030\t \001(\t" + - "\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027\n\nsubnetwork\030\013 \001" + - "(\tB\003\340A\005\022e\n\026private_cluster_config\030\014 \001(\0132" + - "E.google.cloud.workstations.v1.Workstati" + - "onCluster.PrivateClusterConfig\022\025\n\010degrad" + - "ed\030\r \001(\010B\003\340A\003\022+\n\nconditions\030\016 \003(\0132\022.goog" + - "le.rpc.StatusB\003\340A\003\032\232\001\n\024PrivateClusterCon" + - "fig\022$\n\027enable_private_endpoint\030\001 \001(\010B\003\340A" + - "\005\022\035\n\020cluster_hostname\030\002 \001(\tB\003\340A\003\022#\n\026serv" + - "ice_attachment_uri\030\003 \001(\tB\003\340A\003\022\030\n\020allowed" + - "_projects\030\004 \003(\t\0322\n\020AnnotationsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\212\001\352A\206" + - "\001\n.workstations.googleapis.com/Workstati" + - "onCluster\022Qprojects/{project}/locations/" + - "{location}/workstationClusters/{workstat" + - "ion_cluster}R\001\001\"\326\025\n\021WorkstationConfig\022\014\n" + - "\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid" + - "\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022U\n" + - "\013annotations\030\005 \003(\0132@.google.cloud.workst" + - "ations.v1.WorkstationConfig.AnnotationsE" + - "ntry\022K\n\006labels\030\022 \003(\0132;.google.cloud.work" + - "stations.v1.WorkstationConfig.LabelsEntr" + - "y\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_" + - "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\022\014\n\004etag\030\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132" + - "\031.google.protobuf.Duration\0222\n\017running_ti" + - "meout\030\013 \001(\0132\031.google.protobuf.Duration\022B" + - "\n\004host\030\014 \001(\01324.google.cloud.workstations" + - ".v1.WorkstationConfig.Host\022c\n\026persistent" + - "_directories\030\r \003(\0132C.google.cloud.workst" + - "ations.v1.WorkstationConfig.PersistentDi" + - "rectory\022L\n\tcontainer\030\016 \001(\01329.google.clou" + - "d.workstations.v1.WorkstationConfig.Cont" + - "ainer\022]\n\016encryption_key\030\021 \001(\0132E.google.c" + - "loud.workstations.v1.WorkstationConfig.C" + - "ustomerEncryptionKey\022\025\n\010degraded\030\017 \001(\010B\003" + - "\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc.Sta" + - "tusB\003\340A\003\032\356\005\n\004Host\022X\n\014gce_instance\030\001 \001(\0132" + - "@.google.cloud.workstations.v1.Workstati" + - "onConfig.Host.GceInstanceH\000\032\201\005\n\013GceInsta" + - "nce\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017service_acc" + - "ount\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool_size\030\005 " + - "\001(\005\022#\n\033disable_public_ip_addresses\030\006 \001(\010" + - "\022$\n\034enable_nested_virtualization\030\007 \001(\010\022|" + - "\n\030shielded_instance_config\030\010 \001(\0132Z.googl" + - "e.cloud.workstations.v1.WorkstationConfi" + - "g.Host.GceInstance.GceShieldedInstanceCo" + - "nfig\022\204\001\n\034confidential_instance_config\030\n " + - "\001(\0132^.google.cloud.workstations.v1.Works" + - "tationConfig.Host.GceInstance.GceConfide" + - "ntialInstanceConfig\022\031\n\021boot_disk_size_gb" + - "\030\t \001(\005\032q\n\031GceShieldedInstanceConfig\022\032\n\022e" + - "nable_secure_boot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002" + - " \001(\010\022#\n\033enable_integrity_monitoring\030\003 \001(" + - "\010\032D\n\035GceConfidentialInstanceConfig\022#\n\033en" + - "able_confidential_compute\030\001 \001(\010B\010\n\006confi" + - "g\032\347\003\n\023PersistentDirectory\022o\n\006gce_pd\030\002 \001(" + - "\0132].google.cloud.workstations.v1.Worksta" + - "tionConfig.PersistentDirectory.GceRegion" + - "alPersistentDiskH\000\022\022\n\nmount_path\030\001 \001(\t\032\270" + - "\002\n\031GceRegionalPersistentDisk\022\017\n\007size_gb\030" + - "\001 \001(\005\022\017\n\007fs_type\030\002 \001(\t\022\021\n\tdisk_type\030\003 \001(" + - "\t\022\027\n\017source_snapshot\030\005 \001(\t\022\203\001\n\016reclaim_p" + - "olicy\030\004 \001(\0162k.google.cloud.workstations." + - "v1.WorkstationConfig.PersistentDirectory" + - ".GceRegionalPersistentDisk.ReclaimPolicy" + - "\"G\n\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSP" + - "ECIFIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016dir" + - "ectory_type\032\340\001\n\tContainer\022\r\n\005image\030\001 \001(\t" + - "\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022O\n\003env\030\004" + - " \003(\0132B.google.cloud.workstations.v1.Work" + - "stationConfig.Container.EnvEntry\022\023\n\013work" + - "ing_dir\030\005 \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010En" + - "vEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I" + - "\n\025CustomerEncryptionKey\022\017\n\007kms_key\030\001 \001(\t" + - "\022\037\n\027kms_key_service_account\030\002 \001(\t\0322\n\020Ann" + - "otationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001:\261\001\352A\255\001\n-workstations.google" + - "apis.com/WorkstationConfig\022yprojects/{pr" + - "oject}/locations/{location}/workstationC" + - "lusters/{workstation_cluster}/workstatio" + - "nConfigs/{workstation_config}R\001\001\"\230\007\n\013Wor" + - "kstation\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002" + - " \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 " + - "\001(\010B\003\340A\003\022O\n\013annotations\030\005 \003(\0132:.google.c" + - "loud.workstations.v1.Workstation.Annotat" + - "ionsEntry\022E\n\006labels\030\r \003(\01325.google.cloud" + - ".workstations.v1.Workstation.LabelsEntry" + - "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + - "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\022\014\n\004etag\030\t \001(\t\022C\n\005state\030\n \001(\0162/.google" + - ".cloud.workstations.v1.Workstation.State" + - "B\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020AnnotationsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" + - "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016S" + - "TATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016ST" + - "ATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352A\303\001" + - "\n\'workstations.googleapis.com/Workstatio" + - "n\022\224\001projects/{project}/locations/{locati" + - "on}/workstationClusters/{workstation_clu" + - "ster}/workstationConfigs/{workstation_co" + - "nfig}/workstations/{workstation}R\001\001\"d\n\034G" + - "etWorkstationClusterRequest\022D\n\004name\030\001 \001(" + - "\tB6\340A\002\372A0\n.workstations.googleapis.com/W" + - "orkstationCluster\"\217\001\n\036ListWorkstationClu" + - "stersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.wo" + - "rkstations.googleapis.com/WorkstationClu" + - "ster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\"\237\001\n\037ListWorkstationClustersResponse\022" + - "N\n\024workstation_clusters\030\001 \003(\01320.google.c" + - "loud.workstations.v1.WorkstationCluster\022" + - "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + - "\003 \003(\t\"\371\001\n\037CreateWorkstationClusterReques" + - "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workstations." + - "googleapis.com/WorkstationCluster\022#\n\026wor" + - "kstation_cluster_id\030\002 \001(\tB\003\340A\002\022R\n\023workst" + - "ation_cluster\030\003 \001(\01320.google.cloud.works" + - "tations.v1.WorkstationClusterB\003\340A\002\022\025\n\rva" + - "lidate_only\030\004 \001(\010\"\331\001\n\037UpdateWorkstationC" + - "lusterRequest\022R\n\023workstation_cluster\030\001 \001" + - "(\01320.google.cloud.workstations.v1.Workst" + - "ationClusterB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + - ".google.protobuf.FieldMaskB\003\340A\002\022\025\n\rvalid" + - "ate_only\030\003 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\"\233\001" + - "\n\037DeleteWorkstationClusterRequest\022D\n\004nam" + - "e\030\001 \001(\tB6\340A\002\372A0\n.workstations.googleapis" + - ".com/WorkstationCluster\022\025\n\rvalidate_only" + - "\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005force\030\004 \001(\010\"b\n\033G" + - "etWorkstationConfigRequest\022C\n\004name\030\001 \001(\t" + - "B5\340A\002\372A/\n-workstations.googleapis.com/Wo" + - "rkstationConfig\"\216\001\n\035ListWorkstationConfi" + - "gsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.works" + - "tations.googleapis.com/WorkstationCluste" + - "r\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + - "\"\234\001\n\036ListWorkstationConfigsResponse\022L\n\023w" + - "orkstation_configs\030\001 \003(\0132/.google.cloud." + - "workstations.v1.WorkstationConfig\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + - "\224\001\n#ListUsableWorkstationConfigsRequest\022" + - "F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.workstations.go" + - "ogleapis.com/WorkstationCluster\022\021\n\tpage_" + - "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n$ListU" + - "sableWorkstationConfigsResponse\022L\n\023works" + - "tation_configs\030\001 \003(\0132/.google.cloud.work" + - "stations.v1.WorkstationConfig\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\365\001\n\036" + - "CreateWorkstationConfigRequest\022F\n\006parent" + - "\030\001 \001(\tB6\340A\002\372A0\n.workstations.googleapis." + - "com/WorkstationCluster\022\"\n\025workstation_co" + - "nfig_id\030\002 \001(\tB\003\340A\002\022P\n\022workstation_config" + - "\030\003 \001(\0132/.google.cloud.workstations.v1.Wo" + - "rkstationConfigB\003\340A\002\022\025\n\rvalidate_only\030\004 " + - "\001(\010\"\326\001\n\036UpdateWorkstationConfigRequest\022P" + - "\n\022workstation_config\030\001 \001(\0132/.google.clou" + - "d.workstations.v1.WorkstationConfigB\003\340A\002" + - "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + - "FieldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n" + - "\rallow_missing\030\004 \001(\010\"\231\001\n\036DeleteWorkstati" + - "onConfigRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-w" + - "orkstations.googleapis.com/WorkstationCo" + - "nfig\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(" + - "\t\022\r\n\005force\030\004 \001(\010\"V\n\025GetWorkstationReques" + - "t\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstations.go" + - "ogleapis.com/Workstation\"\207\001\n\027ListWorksta" + - "tionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wo" + - "rkstations.googleapis.com/WorkstationCon" + - "fig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + - "(\t\"\211\001\n\030ListWorkstationsResponse\022?\n\014works" + - "tations\030\001 \003(\0132).google.cloud.workstation" + - "s.v1.Workstation\022\027\n\017next_page_token\030\002 \001(" + - "\t\022\023\n\013unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWor" + - "kstationsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/" + - "\n-workstations.googleapis.com/Workstatio" + - "nConfig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"\217\001\n\036ListUsableWorkstationsRespons" + - "e\022?\n\014workstations\030\001 \003(\0132).google.cloud.w" + - "orkstations.v1.Workstation\022\027\n\017next_page_" + - "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\332\001\n\030Cre" + - "ateWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340" + - "A\002\372A/\n-workstations.googleapis.com/Works" + - "tationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A" + - "\002\022C\n\013workstation\030\003 \001(\0132).google.cloud.wo" + - "rkstations.v1.WorkstationB\003\340A\002\022\025\n\rvalida" + - "te_only\030\004 \001(\010\"\303\001\n\030UpdateWorkstationReque" + - "st\022C\n\013workstation\030\001 \001(\0132).google.cloud.w" + - "orkstations.v1.WorkstationB\003\340A\002\0224\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" + - "ssing\030\004 \001(\010\"~\n\030DeleteWorkstationRequest\022" + - "=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstations.goog" + - "leapis.com/Workstation\022\025\n\rvalidate_only\030" + - "\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorkstationR" + - "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" + - "ns.googleapis.com/Workstation\022\025\n\rvalidat" + - "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026StopWorkst" + - "ationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'work" + - "stations.googleapis.com/Workstation\022\025\n\rv" + - "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\315\001\n\032Gen" + - "erateAccessTokenRequest\0221\n\013expire_time\030\002" + - " \001(\0132\032.google.protobuf.TimestampH\000\022(\n\003tt" + - "l\030\003 \001(\0132\031.google.protobuf.DurationH\000\022D\n\013" + - "workstation\030\001 \001(\tB/\340A\002\372A)\n\'workstations." + - "googleapis.com/WorkstationB\014\n\nexpiration" + - "\"d\n\033GenerateAccessTokenResponse\022\024\n\014acces" + - "s_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(\0132\032.goo" + - "gle.protobuf.Timestamp\"\200\002\n\021OperationMeta" + - "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + - "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" + - "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + - "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + - "\0032\233*\n\014Workstations\022\315\001\n\025GetWorkstationClu" + - "ster\022:.google.cloud.workstations.v1.GetW" + - "orkstationClusterRequest\0320.google.cloud." + - "workstations.v1.WorkstationCluster\"F\202\323\344\223" + - "\0029\0227/v1/{name=projects/*/locations/*/wor" + - "kstationClusters/*}\332A\004name\022\340\001\n\027ListWorks" + - "tationClusters\022<.google.cloud.workstatio" + - "ns.v1.ListWorkstationClustersRequest\032=.g" + - "oogle.cloud.workstations.v1.ListWorkstat" + - "ionClustersResponse\"H\202\323\344\223\0029\0227/v1/{parent" + - "=projects/*/locations/*}/workstationClus" + - "ters\332A\006parent\022\255\002\n\030CreateWorkstationClust" + - "er\022=.google.cloud.workstations.v1.Create" + - "WorkstationClusterRequest\032\035.google.longr" + - "unning.Operation\"\262\001\202\323\344\223\002N\"7/v1/{parent=p" + - "rojects/*/locations/*}/workstationCluste" + - "rs:\023workstation_cluster\332A1parent,worksta" + - "tion_cluster,workstation_cluster_id\312A\'\n\022" + - "WorkstationCluster\022\021OperationMetadata\022\257\002" + - "\n\030UpdateWorkstationCluster\022=.google.clou" + - "d.workstations.v1.UpdateWorkstationClust" + - "erRequest\032\035.google.longrunning.Operation" + - "\"\264\001\202\323\344\223\002b2K/v1/{workstation_cluster.name" + - "=projects/*/locations/*/workstationClust" + - "ers/*}:\023workstation_cluster\332A\037workstatio" + - "n_cluster,update_mask\312A\'\n\022WorkstationClu" + - "ster\022\021OperationMetadata\022\352\001\n\030DeleteWorkst" + - "ationCluster\022=.google.cloud.workstations" + - ".v1.DeleteWorkstationClusterRequest\032\035.go" + - "ogle.longrunning.Operation\"p\202\323\344\223\0029*7/v1/" + - "{name=projects/*/locations/*/workstation" + - "Clusters/*}\332A\004name\312A\'\n\022WorkstationCluste" + - "r\022\021OperationMetadata\022\337\001\n\024GetWorkstationC" + - "onfig\0229.google.cloud.workstations.v1.Get" + - "WorkstationConfigRequest\032/.google.cloud." + - "workstations.v1.WorkstationConfig\"[\202\323\344\223\002" + - "N\022L/v1/{name=projects/*/locations/*/work" + - "stationClusters/*/workstationConfigs/*}\332" + - "A\004name\022\362\001\n\026ListWorkstationConfigs\022;.goog" + - "le.cloud.workstations.v1.ListWorkstation" + - "ConfigsRequest\032<.google.cloud.workstatio" + - "ns.v1.ListWorkstationConfigsResponse\"]\202\323" + - "\344\223\002N\022L/v1/{parent=projects/*/locations/*" + - "/workstationClusters/*}/workstationConfi" + - "gs\332A\006parent\022\217\002\n\034ListUsableWorkstationCon" + - "figs\022A.google.cloud.workstations.v1.List" + - "UsableWorkstationConfigsRequest\032B.google" + - ".cloud.workstations.v1.ListUsableWorksta" + - "tionConfigsResponse\"h\202\323\344\223\002Y\022W/v1/{parent" + - "=projects/*/locations/*/workstationClust" + - "ers/*}/workstationConfigs:listUsable\332A\006p" + - "arent\022\274\002\n\027CreateWorkstationConfig\022<.goog" + - "le.cloud.workstations.v1.CreateWorkstati" + - "onConfigRequest\032\035.google.longrunning.Ope" + - "ration\"\303\001\202\323\344\223\002b\"L/v1/{parent=projects/*/" + - "locations/*/workstationClusters/*}/works" + - "tationConfigs:\022workstation_config\332A/pare" + - "nt,workstation_config,workstation_config" + - "_id\312A&\n\021WorkstationConfig\022\021OperationMeta" + - "data\022\276\002\n\027UpdateWorkstationConfig\022<.googl" + - "e.cloud.workstations.v1.UpdateWorkstatio" + - "nConfigRequest\032\035.google.longrunning.Oper" + - "ation\"\305\001\202\323\344\223\002u2_/v1/{workstation_config." + - "name=projects/*/locations/*/workstationC" + - "lusters/*/workstationConfigs/*}:\022worksta" + - "tion_config\332A\036workstation_config,update_" + - "mask\312A&\n\021WorkstationConfig\022\021OperationMet" + - "adata\022\375\001\n\027DeleteWorkstationConfig\022<.goog" + - "le.cloud.workstations.v1.DeleteWorkstati" + - "onConfigRequest\032\035.google.longrunning.Ope" + - "ration\"\204\001\202\323\344\223\002N*L/v1/{name=projects/*/lo" + - "cations/*/workstationClusters/*/workstat" + - "ionConfigs/*}\332A\004name\312A&\n\021WorkstationConf" + - "ig\022\021OperationMetadata\022\334\001\n\016GetWorkstation" + - "\0223.google.cloud.workstations.v1.GetWorks" + - "tationRequest\032).google.cloud.workstation" + - "s.v1.Workstation\"j\202\323\344\223\002]\022[/v1/{name=proj" + - "ects/*/locations/*/workstationClusters/*" + - "/workstationConfigs/*/workstations/*}\332A\004" + - "name\022\357\001\n\020ListWorkstations\0225.google.cloud" + - ".workstations.v1.ListWorkstationsRequest" + - "\0326.google.cloud.workstations.v1.ListWork" + - "stationsResponse\"l\202\323\344\223\002]\022[/v1/{parent=pr" + - "ojects/*/locations/*/workstationClusters" + - "/*/workstationConfigs/*}/workstations\332A\006" + - "parent\022\214\002\n\026ListUsableWorkstations\022;.goog" + - "le.cloud.workstations.v1.ListUsableWorks" + - "tationsRequest\032<.google.cloud.workstatio" + - "ns.v1.ListUsableWorkstationsResponse\"w\202\323" + - "\344\223\002h\022f/v1/{parent=projects/*/locations/*" + - "/workstationClusters/*/workstationConfig" + - "s/*}/workstations:listUsable\332A\006parent\022\244\002" + - "\n\021CreateWorkstation\0226.google.cloud.works" + - "tations.v1.CreateWorkstationRequest\032\035.go" + - "ogle.longrunning.Operation\"\267\001\202\323\344\223\002j\"[/v1" + - "/{parent=projects/*/locations/*/workstat" + - "ionClusters/*/workstationConfigs/*}/work" + - "stations:\013workstation\332A!parent,workstati" + - "on,workstation_id\312A \n\013Workstation\022\021Opera" + - "tionMetadata\022\246\002\n\021UpdateWorkstation\0226.goo" + - "gle.cloud.workstations.v1.UpdateWorkstat" + - "ionRequest\032\035.google.longrunning.Operatio" + - "n\"\271\001\202\323\344\223\002v2g/v1/{workstation.name=projec" + - "ts/*/locations/*/workstationClusters/*/w" + - "orkstationConfigs/*/workstations/*}:\013wor" + - "kstation\332A\027workstation,update_mask\312A \n\013W" + - "orkstation\022\021OperationMetadata\022\372\001\n\021Delete" + - "Workstation\0226.google.cloud.workstations." + - "v1.DeleteWorkstationRequest\032\035.google.lon" + - "grunning.Operation\"\215\001\202\323\344\223\002]*[/v1/{name=p" + - "rojects/*/locations/*/workstationCluster" + - "s/*/workstationConfigs/*/workstations/*}" + - "\332A\004name\312A \n\013Workstation\022\021OperationMetada" + - "ta\022\201\002\n\020StartWorkstation\0225.google.cloud.w" + - "orkstations.v1.StartWorkstationRequest\032\035" + - ".google.longrunning.Operation\"\226\001\202\323\344\223\002f\"a" + - "/v1/{name=projects/*/locations/*/worksta" + - "tionClusters/*/workstationConfigs/*/work" + - "stations/*}:start:\001*\332A\004name\312A \n\013Workstat" + - "ion\022\021OperationMetadata\022\376\001\n\017StopWorkstati" + - "on\0224.google.cloud.workstations.v1.StopWo" + - "rkstationRequest\032\035.google.longrunning.Op" + - "eration\"\225\001\202\323\344\223\002e\"`/v1/{name=projects/*/l" + - "ocations/*/workstationClusters/*/worksta" + - "tionConfigs/*/workstations/*}:stop:\001*\332A\004" + - "name\312A \n\013Workstation\022\021OperationMetadata\022" + - "\234\002\n\023GenerateAccessToken\0228.google.cloud.w" + - "orkstations.v1.GenerateAccessTokenReques" + - "t\0329.google.cloud.workstations.v1.Generat" + - "eAccessTokenResponse\"\217\001\202\323\344\223\002{\"v/v1/{work" + - "station=projects/*/locations/*/workstati" + - "onClusters/*/workstationConfigs/*/workst" + - "ations/*}:generateAccessToken:\001*\332A\013works" + - "tation\032O\312A\033workstations.googleapis.com\322A" + - ".https://www.googleapis.com/auth/cloud-p" + - "latformB}\n com.google.cloud.workstations" + - ".v1B\021WorkstationsProtoP\001ZDcloud.google.c" + - "om/go/workstations/apiv1/workstationspb;" + - "workstationspbb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "PrivateClusterConfig", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "Container", "EncryptionKey", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, - new java.lang.String[] { "GceInstance", "Config", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { "MachineType", "ServiceAccount", "Tags", "PoolSize", "DisablePublicIpAddresses", "EnableNestedVirtualization", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { "EnableConfidentialCompute", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, - new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "State", "Host", }); - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { "ExpireTime", "Ttl", "Workstation", "Expiration", }); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { "AccessToken", "ExpireTime", }); - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java deleted file mode 100644 index fa02d0008590..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java +++ /dev/null @@ -1,1969 +0,0 @@ -package com.google.cloud.workstations.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service for interacting with Cloud Workstations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1beta/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.workstations.v1beta.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1beta.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationMethod() { - io.grpc.MethodDescriptor getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationsMethod() { - io.grpc.MethodDescriptor getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { - io.grpc.MethodDescriptor getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartWorkstationMethod() { - io.grpc.MethodDescriptor getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopWorkstationMethod() { - io.grpc.MethodDescriptor getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WorkstationsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - default void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static abstract class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.Workstation getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all Workstations using the specified config.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all Workstations using the specified config on which the caller has
-     * the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation((com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation((com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation((com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private static abstract class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WorkstationsMethodDescriptorSupplier(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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index 6b550f876a1e..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index 4243e50977ce..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index a8371e1e9e04..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java deleted file mode 100644 index 9a6bd00dc421..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java +++ /dev/null @@ -1,954 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public final class WorkstationsProto { - private WorkstationsProto() {} - 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_workstations_v1beta_WorkstationCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/workstations/v1beta/works" + - "tations.proto\022 google.cloud.workstations" + - ".v1beta\032\034google/api/annotations.proto\032\027g" + - "oogle/api/client.proto\032\037google/api/field" + - "_behavior.proto\032\031google/api/resource.pro" + - "to\032#google/longrunning/operations.proto\032" + - "\036google/protobuf/duration.proto\032 google/" + - "protobuf/field_mask.proto\032\037google/protob" + - "uf/timestamp.proto\032\027google/rpc/status.pr" + - "oto\"\255\010\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" + - "\022\024\n\014display_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003" + - "\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022Z\n\013annotation" + - "s\030\005 \003(\0132E.google.cloud.workstations.v1be" + - "ta.WorkstationCluster.AnnotationsEntry\022P" + - "\n\006labels\030\017 \003(\0132@.google.cloud.workstatio" + - "ns.v1beta.WorkstationCluster.LabelsEntry" + - "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0224\n\013delete_t" + - "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\022\014\n\004etag\030\t \001(\t\022\024\n\007network\030\n \001(\tB\003\340A\005\022\027" + - "\n\nsubnetwork\030\013 \001(\tB\003\340A\005\022i\n\026private_clust" + - "er_config\030\014 \001(\0132I.google.cloud.workstati" + - "ons.v1beta.WorkstationCluster.PrivateClu" + - "sterConfig\022\025\n\010degraded\030\r \001(\010B\003\340A\003\022+\n\ncon" + - "ditions\030\016 \003(\0132\022.google.rpc.StatusB\003\340A\003\032\232" + - "\001\n\024PrivateClusterConfig\022$\n\027enable_privat" + - "e_endpoint\030\001 \001(\010B\003\340A\005\022\035\n\020cluster_hostnam" + - "e\030\002 \001(\tB\003\340A\003\022#\n\026service_attachment_uri\030\003" + - " \001(\tB\003\340A\003\022\030\n\020allowed_projects\030\004 \003(\t\0322\n\020A" + - "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001:\212\001\352A\206\001\n.workstations.goog" + - "leapis.com/WorkstationCluster\022Qprojects/" + - "{project}/locations/{location}/workstati" + - "onClusters/{workstation_cluster}R\001\001\"\341\025\n\021" + - "WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014displ" + - "ay_name\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013recon" + - "ciling\030\004 \001(\010B\003\340A\003\022Y\n\013annotations\030\005 \003(\0132D" + - ".google.cloud.workstations.v1beta.Workst" + - "ationConfig.AnnotationsEntry\022O\n\006labels\030\022" + - " \003(\0132?.google.cloud.workstations.v1beta." + - "WorkstationConfig.LabelsEntry\0224\n\013create_" + - "time\030\006 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\022\014\n\004etag\030" + - "\t \001(\t\022/\n\014idle_timeout\030\n \001(\0132\031.google.pro" + - "tobuf.Duration\0222\n\017running_timeout\030\013 \001(\0132" + - "\031.google.protobuf.Duration\022F\n\004host\030\014 \001(\013" + - "28.google.cloud.workstations.v1beta.Work" + - "stationConfig.Host\022g\n\026persistent_directo" + - "ries\030\r \003(\0132G.google.cloud.workstations.v" + - "1beta.WorkstationConfig.PersistentDirect" + - "ory\022P\n\tcontainer\030\016 \001(\0132=.google.cloud.wo" + - "rkstations.v1beta.WorkstationConfig.Cont" + - "ainer\022a\n\016encryption_key\030\021 \001(\0132I.google.c" + - "loud.workstations.v1beta.WorkstationConf" + - "ig.CustomerEncryptionKey\022\025\n\010degraded\030\017 \001" + - "(\010B\003\340A\003\022+\n\nconditions\030\020 \003(\0132\022.google.rpc" + - ".StatusB\003\340A\003\032\325\005\n\004Host\022\\\n\014gce_instance\030\001 " + - "\001(\0132D.google.cloud.workstations.v1beta.W" + - "orkstationConfig.Host.GceInstanceH\000\032\344\004\n\013" + - "GceInstance\022\024\n\014machine_type\030\001 \001(\t\022\027\n\017ser" + - "vice_account\030\002 \001(\t\022\014\n\004tags\030\004 \003(\t\022\021\n\tpool" + - "_size\030\005 \001(\005\022#\n\033disable_public_ip_address" + - "es\030\006 \001(\010\022\200\001\n\030shielded_instance_config\030\010 " + - "\001(\0132^.google.cloud.workstations.v1beta.W" + - "orkstationConfig.Host.GceInstance.GceShi" + - "eldedInstanceConfig\022\210\001\n\034confidential_ins" + - "tance_config\030\n \001(\0132b.google.cloud.workst" + - "ations.v1beta.WorkstationConfig.Host.Gce" + - "Instance.GceConfidentialInstanceConfig\022\031" + - "\n\021boot_disk_size_gb\030\t \001(\005\032q\n\031GceShielded" + - "InstanceConfig\022\032\n\022enable_secure_boot\030\001 \001" + - "(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable_integr" + - "ity_monitoring\030\003 \001(\010\032D\n\035GceConfidentialI" + - "nstanceConfig\022#\n\033enable_confidential_com" + - "pute\030\001 \001(\010B\010\n\006config\032\357\003\n\023PersistentDirec" + - "tory\022\022\n\nmount_path\030\001 \001(\t\022s\n\006gce_pd\030\002 \001(\013" + - "2a.google.cloud.workstations.v1beta.Work" + - "stationConfig.PersistentDirectory.GceReg" + - "ionalPersistentDiskH\000\032\274\002\n\031GceRegionalPer" + - "sistentDisk\022\017\n\007size_gb\030\001 \001(\005\022\017\n\007fs_type\030" + - "\002 \001(\t\022\021\n\tdisk_type\030\003 \001(\t\022\027\n\017source_snaps" + - "hot\030\005 \001(\t\022\207\001\n\016reclaim_policy\030\004 \001(\0162o.goo" + - "gle.cloud.workstations.v1beta.Workstatio" + - "nConfig.PersistentDirectory.GceRegionalP" + - "ersistentDisk.ReclaimPolicy\"G\n\rReclaimPo" + - "licy\022\036\n\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006" + - "DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\344" + - "\001\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007command\030\002" + - " \003(\t\022\014\n\004args\030\003 \003(\t\022S\n\003env\030\004 \003(\0132F.google" + - ".cloud.workstations.v1beta.WorkstationCo" + - "nfig.Container.EnvEntry\022\023\n\013working_dir\030\005" + - " \001(\t\022\023\n\013run_as_user\030\006 \001(\005\032*\n\010EnvEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032I\n\025Custome" + - "rEncryptionKey\022\017\n\007kms_key\030\001 \001(\t\022\037\n\027kms_k" + - "ey_service_account\030\002 \001(\t\0322\n\020AnnotationsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013" + - "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001:\261\001\352A\255\001\n-workstations.googleapis.com/" + - "WorkstationConfig\022yprojects/{project}/lo" + - "cations/{location}/workstationClusters/{" + - "workstation_cluster}/workstationConfigs/" + - "{workstation_config}R\001\001\"\244\007\n\013Workstation\022" + - "\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022\020\n\003u" + - "id\030\003 \001(\tB\003\340A\003\022\030\n\013reconciling\030\004 \001(\010B\003\340A\003\022" + - "S\n\013annotations\030\005 \003(\0132>.google.cloud.work" + - "stations.v1beta.Workstation.AnnotationsE" + - "ntry\022I\n\006labels\030\r \003(\01329.google.cloud.work" + - "stations.v1beta.Workstation.LabelsEntry\022" + - "4\n\013create_time\030\006 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" + - "me\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\022\014\n\004etag\030\t \001(\t\022G\n\005state\030\n \001(\01623.google." + - "cloud.workstations.v1beta.Workstation.St" + - "ateB\003\340A\003\022\021\n\004host\030\013 \001(\tB\003\340A\003\0322\n\020Annotatio" + - "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" + - "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\022" + - "\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n" + - "\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPED\020\004:\307\001\352" + - "A\303\001\n\'workstations.googleapis.com/Worksta" + - "tion\022\224\001projects/{project}/locations/{loc" + - "ation}/workstationClusters/{workstation_" + - "cluster}/workstationConfigs/{workstation" + - "_config}/workstations/{workstation}R\001\001\"d" + - "\n\034GetWorkstationClusterRequest\022D\n\004name\030\001" + - " \001(\tB6\340A\002\372A0\n.workstations.googleapis.co" + - "m/WorkstationCluster\"\217\001\n\036ListWorkstation" + - "ClustersRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022" + - ".workstations.googleapis.com/Workstation" + - "Cluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"\243\001\n\037ListWorkstationClustersRespon" + - "se\022R\n\024workstation_clusters\030\001 \003(\01324.googl" + - "e.cloud.workstations.v1beta.WorkstationC" + - "luster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"\375\001\n\037CreateWorkstationCluste" + - "rRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.workst" + - "ations.googleapis.com/WorkstationCluster" + - "\022#\n\026workstation_cluster_id\030\002 \001(\tB\003\340A\002\022V\n" + - "\023workstation_cluster\030\003 \001(\01324.google.clou" + - "d.workstations.v1beta.WorkstationCluster" + - "B\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\335\001\n\037UpdateW" + - "orkstationClusterRequest\022V\n\023workstation_" + - "cluster\030\001 \001(\01324.google.cloud.workstation" + - "s.v1beta.WorkstationClusterB\003\340A\002\0224\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "kB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_m" + - "issing\030\004 \001(\010\"\233\001\n\037DeleteWorkstationCluste" + - "rRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.workstat" + - "ions.googleapis.com/WorkstationCluster\022\025" + - "\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005f" + - "orce\030\004 \001(\010\"b\n\033GetWorkstationConfigReques" + - "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstations.go" + - "ogleapis.com/WorkstationConfig\"\216\001\n\035ListW" + - "orkstationConfigsRequest\022F\n\006parent\030\001 \001(\t" + - "B6\340A\002\372A0\n.workstations.googleapis.com/Wo" + - "rkstationCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + - "age_token\030\003 \001(\t\"\240\001\n\036ListWorkstationConfi" + - "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" + - "3.google.cloud.workstations.v1beta.Works" + - "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + - "\013unreachable\030\003 \003(\t\"\224\001\n#ListUsableWorksta" + - "tionConfigsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372" + - "A0\n.workstations.googleapis.com/Workstat" + - "ionCluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + - "ken\030\003 \001(\t\"\246\001\n$ListUsableWorkstationConfi" + - "gsResponse\022P\n\023workstation_configs\030\001 \003(\0132" + - "3.google.cloud.workstations.v1beta.Works" + - "tationConfig\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + - "\013unreachable\030\003 \003(\t\"\371\001\n\036CreateWorkstation" + - "ConfigRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\n.w" + - "orkstations.googleapis.com/WorkstationCl" + - "uster\022\"\n\025workstation_config_id\030\002 \001(\tB\003\340A" + - "\002\022T\n\022workstation_config\030\003 \001(\01323.google.c" + - "loud.workstations.v1beta.WorkstationConf" + - "igB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\332\001\n\036Updat" + - "eWorkstationConfigRequest\022T\n\022workstation" + - "_config\030\001 \001(\01323.google.cloud.workstation" + - "s.v1beta.WorkstationConfigB\003\340A\002\0224\n\013updat" + - "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\rallow_mi" + - "ssing\030\004 \001(\010\"\231\001\n\036DeleteWorkstationConfigR" + - "equest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-workstatio" + - "ns.googleapis.com/WorkstationConfig\022\025\n\rv" + - "alidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\022\r\n\005forc" + - "e\030\004 \001(\010\"V\n\025GetWorkstationRequest\022=\n\004name" + - "\030\001 \001(\tB/\340A\002\372A)\n\'workstations.googleapis." + - "com/Workstation\"\207\001\n\027ListWorkstationsRequ" + - "est\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-workstation" + - "s.googleapis.com/WorkstationConfig\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\215\001\n\030Li" + - "stWorkstationsResponse\022C\n\014workstations\030\001" + - " \003(\0132-.google.cloud.workstations.v1beta." + - "Workstation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + - "unreachable\030\003 \003(\t\"\215\001\n\035ListUsableWorkstat" + - "ionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\n-wor" + - "kstations.googleapis.com/WorkstationConf" + - "ig\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"\223\001\n\036ListUsableWorkstationsResponse\022C\n\014" + - "workstations\030\001 \003(\0132-.google.cloud.workst" + - "ations.v1beta.Workstation\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\336\001\n\030Crea" + - "teWorkstationRequest\022E\n\006parent\030\001 \001(\tB5\340A" + - "\002\372A/\n-workstations.googleapis.com/Workst" + - "ationConfig\022\033\n\016workstation_id\030\002 \001(\tB\003\340A\002" + - "\022G\n\013workstation\030\003 \001(\0132-.google.cloud.wor" + - "kstations.v1beta.WorkstationB\003\340A\002\022\025\n\rval" + - "idate_only\030\004 \001(\010\"\307\001\n\030UpdateWorkstationRe" + - "quest\022G\n\013workstation\030\001 \001(\0132-.google.clou" + - "d.workstations.v1beta.WorkstationB\003\340A\002\0224" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003 \001(\010\022\025\n\ra" + - "llow_missing\030\004 \001(\010\"~\n\030DeleteWorkstationR" + - "equest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'workstatio" + - "ns.googleapis.com/Workstation\022\025\n\rvalidat" + - "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"}\n\027StartWorks" + - "tationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'wor" + - "kstations.googleapis.com/Workstation\022\025\n\r" + - "validate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"|\n\026Sto" + - "pWorkstationRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A" + - ")\n\'workstations.googleapis.com/Workstati" + - "on\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"" + - "\315\001\n\032GenerateAccessTokenRequest\022D\n\013workst" + - "ation\030\001 \001(\tB/\340A\002\372A)\n\'workstations.google" + - "apis.com/Workstation\0221\n\013expire_time\030\002 \001(" + - "\0132\032.google.protobuf.TimestampH\000\022(\n\003ttl\030\003" + - " \001(\0132\031.google.protobuf.DurationH\000B\014\n\nexp" + - "iration\"d\n\033GenerateAccessTokenResponse\022\024" + - "\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 \001(" + - "\0132\032.google.protobuf.Timestamp\"\200\002\n\021Operat" + - "ionMetadata\0224\n\013create_time\030\001 \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006" + - "target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016" + - "status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_c" + - "ancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 " + - "\001(\tB\003\340A\0032\337+\n\014Workstations\022\331\001\n\025GetWorksta" + - "tionCluster\022>.google.cloud.workstations." + - "v1beta.GetWorkstationClusterRequest\0324.go" + - "ogle.cloud.workstations.v1beta.Workstati" + - "onCluster\"J\202\323\344\223\002=\022;/v1beta/{name=project" + - "s/*/locations/*/workstationClusters/*}\332A" + - "\004name\022\354\001\n\027ListWorkstationClusters\022@.goog" + - "le.cloud.workstations.v1beta.ListWorksta" + - "tionClustersRequest\032A.google.cloud.works" + - "tations.v1beta.ListWorkstationClustersRe" + - "sponse\"L\202\323\344\223\002=\022;/v1beta/{parent=projects" + - "/*/locations/*}/workstationClusters\332A\006pa" + - "rent\022\265\002\n\030CreateWorkstationCluster\022A.goog" + - "le.cloud.workstations.v1beta.CreateWorks" + - "tationClusterRequest\032\035.google.longrunnin" + - "g.Operation\"\266\001\202\323\344\223\002R\";/v1beta/{parent=pr" + - "ojects/*/locations/*}/workstationCluster" + - "s:\023workstation_cluster\332A1parent,workstat" + - "ion_cluster,workstation_cluster_id\312A\'\n\022W" + - "orkstationCluster\022\021OperationMetadata\022\267\002\n" + - "\030UpdateWorkstationCluster\022A.google.cloud" + - ".workstations.v1beta.UpdateWorkstationCl" + - "usterRequest\032\035.google.longrunning.Operat" + - "ion\"\270\001\202\323\344\223\002f2O/v1beta/{workstation_clust" + - "er.name=projects/*/locations/*/workstati" + - "onClusters/*}:\023workstation_cluster\332A\037wor" + - "kstation_cluster,update_mask\312A\'\n\022Worksta" + - "tionCluster\022\021OperationMetadata\022\362\001\n\030Delet" + - "eWorkstationCluster\022A.google.cloud.works" + - "tations.v1beta.DeleteWorkstationClusterR" + - "equest\032\035.google.longrunning.Operation\"t\202" + - "\323\344\223\002=*;/v1beta/{name=projects/*/location" + - "s/*/workstationClusters/*}\332A\004name\312A\'\n\022Wo" + - "rkstationCluster\022\021OperationMetadata\022\353\001\n\024" + - "GetWorkstationConfig\022=.google.cloud.work" + - "stations.v1beta.GetWorkstationConfigRequ" + - "est\0323.google.cloud.workstations.v1beta.W" + - "orkstationConfig\"_\202\323\344\223\002R\022P/v1beta/{name=" + - "projects/*/locations/*/workstationCluste" + - "rs/*/workstationConfigs/*}\332A\004name\022\376\001\n\026Li" + - "stWorkstationConfigs\022?.google.cloud.work" + - "stations.v1beta.ListWorkstationConfigsRe" + - "quest\032@.google.cloud.workstations.v1beta" + - ".ListWorkstationConfigsResponse\"a\202\323\344\223\002R\022" + - "P/v1beta/{parent=projects/*/locations/*/" + - "workstationClusters/*}/workstationConfig" + - "s\332A\006parent\022\233\002\n\034ListUsableWorkstationConf" + - "igs\022E.google.cloud.workstations.v1beta.L" + - "istUsableWorkstationConfigsRequest\032F.goo" + - "gle.cloud.workstations.v1beta.ListUsable" + - "WorkstationConfigsResponse\"l\202\323\344\223\002]\022[/v1b" + - "eta/{parent=projects/*/locations/*/works" + - "tationClusters/*}/workstationConfigs:lis" + - "tUsable\332A\006parent\022\304\002\n\027CreateWorkstationCo" + - "nfig\022@.google.cloud.workstations.v1beta." + - "CreateWorkstationConfigRequest\032\035.google." + - "longrunning.Operation\"\307\001\202\323\344\223\002f\"P/v1beta/" + - "{parent=projects/*/locations/*/workstati" + - "onClusters/*}/workstationConfigs:\022workst" + - "ation_config\332A/parent,workstation_config" + - ",workstation_config_id\312A&\n\021WorkstationCo" + - "nfig\022\021OperationMetadata\022\306\002\n\027UpdateWorkst" + - "ationConfig\022@.google.cloud.workstations." + - "v1beta.UpdateWorkstationConfigRequest\032\035." + - "google.longrunning.Operation\"\311\001\202\323\344\223\002y2c/" + - "v1beta/{workstation_config.name=projects" + - "/*/locations/*/workstationClusters/*/wor" + - "kstationConfigs/*}:\022workstation_config\332A" + - "\036workstation_config,update_mask\312A&\n\021Work" + - "stationConfig\022\021OperationMetadata\022\205\002\n\027Del" + - "eteWorkstationConfig\022@.google.cloud.work" + - "stations.v1beta.DeleteWorkstationConfigR" + - "equest\032\035.google.longrunning.Operation\"\210\001" + - "\202\323\344\223\002R*P/v1beta/{name=projects/*/locatio" + - "ns/*/workstationClusters/*/workstationCo" + - "nfigs/*}\332A\004name\312A&\n\021WorkstationConfig\022\021O" + - "perationMetadata\022\350\001\n\016GetWorkstation\0227.go" + - "ogle.cloud.workstations.v1beta.GetWorkst" + - "ationRequest\032-.google.cloud.workstations" + - ".v1beta.Workstation\"n\202\323\344\223\002a\022_/v1beta/{na" + - "me=projects/*/locations/*/workstationClu" + - "sters/*/workstationConfigs/*/workstation" + - "s/*}\332A\004name\022\373\001\n\020ListWorkstations\0229.googl" + - "e.cloud.workstations.v1beta.ListWorkstat" + - "ionsRequest\032:.google.cloud.workstations." + - "v1beta.ListWorkstationsResponse\"p\202\323\344\223\002a\022" + - "_/v1beta/{parent=projects/*/locations/*/" + - "workstationClusters/*/workstationConfigs" + - "/*}/workstations\332A\006parent\022\230\002\n\026ListUsable" + - "Workstations\022?.google.cloud.workstations" + - ".v1beta.ListUsableWorkstationsRequest\032@." + - "google.cloud.workstations.v1beta.ListUsa" + - "bleWorkstationsResponse\"{\202\323\344\223\002l\022j/v1beta" + - "/{parent=projects/*/locations/*/workstat" + - "ionClusters/*/workstationConfigs/*}/work" + - "stations:listUsable\332A\006parent\022\254\002\n\021CreateW" + - "orkstation\022:.google.cloud.workstations.v" + - "1beta.CreateWorkstationRequest\032\035.google." + - "longrunning.Operation\"\273\001\202\323\344\223\002n\"_/v1beta/" + - "{parent=projects/*/locations/*/workstati" + - "onClusters/*/workstationConfigs/*}/works" + - "tations:\013workstation\332A!parent,workstatio" + - "n,workstation_id\312A \n\013Workstation\022\021Operat" + - "ionMetadata\022\256\002\n\021UpdateWorkstation\022:.goog" + - "le.cloud.workstations.v1beta.UpdateWorks" + - "tationRequest\032\035.google.longrunning.Opera" + - "tion\"\275\001\202\323\344\223\002z2k/v1beta/{workstation.name" + - "=projects/*/locations/*/workstationClust" + - "ers/*/workstationConfigs/*/workstations/" + - "*}:\013workstation\332A\027workstation,update_mas" + - "k\312A \n\013Workstation\022\021OperationMetadata\022\202\002\n" + - "\021DeleteWorkstation\022:.google.cloud.workst" + - "ations.v1beta.DeleteWorkstationRequest\032\035" + - ".google.longrunning.Operation\"\221\001\202\323\344\223\002a*_" + - "/v1beta/{name=projects/*/locations/*/wor" + - "kstationClusters/*/workstationConfigs/*/" + - "workstations/*}\332A\004name\312A \n\013Workstation\022\021" + - "OperationMetadata\022\211\002\n\020StartWorkstation\0229" + - ".google.cloud.workstations.v1beta.StartW" + - "orkstationRequest\032\035.google.longrunning.O" + - "peration\"\232\001\202\323\344\223\002j\"e/v1beta/{name=project" + - "s/*/locations/*/workstationClusters/*/wo" + - "rkstationConfigs/*/workstations/*}:start" + - ":\001*\332A\004name\312A \n\013Workstation\022\021OperationMet" + - "adata\022\206\002\n\017StopWorkstation\0228.google.cloud" + - ".workstations.v1beta.StopWorkstationRequ" + - "est\032\035.google.longrunning.Operation\"\231\001\202\323\344" + - "\223\002i\"d/v1beta/{name=projects/*/locations/" + - "*/workstationClusters/*/workstationConfi" + - "gs/*/workstations/*}:stop:\001*\332A\004name\312A \n\013" + - "Workstation\022\021OperationMetadata\022\250\002\n\023Gener" + - "ateAccessToken\022<.google.cloud.workstatio" + - "ns.v1beta.GenerateAccessTokenRequest\032=.g" + - "oogle.cloud.workstations.v1beta.Generate" + - "AccessTokenResponse\"\223\001\202\323\344\223\002\177\"z/v1beta/{w" + - "orkstation=projects/*/locations/*/workst" + - "ationClusters/*/workstationConfigs/*/wor" + - "kstations/*}:generateAccessToken:\001*\332A\013wo" + - "rkstation\032O\312A\033workstations.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\205\001\n$com.google.cloud.workstat" + - "ions.v1betaB\021WorkstationsProtoP\001ZHcloud." + - "google.com/go/workstations/apiv1beta/wor" + - "kstationspb;workstationspbb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "PrivateClusterConfig", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "Container", "EncryptionKey", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor, - new java.lang.String[] { "GceInstance", "Config", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { "MachineType", "ServiceAccount", "Tags", "PoolSize", "DisablePublicIpAddresses", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { "EnableConfidentialCompute", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { "MountPath", "GcePd", "DirectoryType", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor, - new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "State", "Host", }); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { "Workstation", "ExpireTime", "Ttl", "Expiration", }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { "AccessToken", "ExpireTime", }); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/versions.txt b/versions.txt index b8bb2dc9dfda..c783fc0e6542 100644 --- a/versions.txt +++ b/versions.txt @@ -630,3 +630,5 @@ proto-google-cloud-confidentialcomputing-v1:0.0.0:0.0.1-SNAPSHOT proto-google-cloud-confidentialcomputing-v1alpha1:0.0.0:0.0.1-SNAPSHOT grpc-google-cloud-confidentialcomputing-v1:0.0.0:0.0.1-SNAPSHOT grpc-google-cloud-confidentialcomputing-v1alpha1:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-workstations-v1:0.2.0:0.3.0-SNAPSHOT +grpc-google-cloud-workstations-v1:0.2.0:0.3.0-SNAPSHOT From df18a08af3d7e179d73fe1394340863c86d30306 Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Thu, 13 Apr 2023 09:58:01 -0400 Subject: [PATCH 3/3] remove diff in pom --- .../grpc-google-cloud-workstations-v1/pom.xml | 24 ------------------- .../pom.xml | 9 ------- 2 files changed, 33 deletions(-) diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml index bd1892a3302b..64a9f89c34bd 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -42,28 +42,4 @@ guava - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - \ No newline at end of file diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml index 2b57741dac0e..2a8952b5e8fb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -34,13 +34,4 @@ guava - - - - - org.codehaus.mojo - flatten-maven-plugin - - -